summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns.php
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2013-07-07 14:44:30 -0700
committerDaniel Becker <razzfazz@gmail.com>2013-07-07 14:44:30 -0700
commitebfe7d20234d5e07e7263a68c4f73b2d022882ce (patch)
treecc234b05c919f5ca278cf426a7f4424d5646c24e /usr/local/www/services_dyndns.php
parentd7e6f57368e6dcab3fd637876ca7d591caa6dd66 (diff)
downloadpfsense-ebfe7d20234d5e07e7263a68c4f73b2d022882ce.zip
pfsense-ebfe7d20234d5e07e7263a68c4f73b2d022882ce.tar.gz
Add front-end support for dyndns AAAA updates
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-xusr/local/www/services_dyndns.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index 5049d63..0cb7419 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -139,6 +139,7 @@ include("head.inc");
<td class="listr">
<?php
$filename = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}.cache";
+ $filename_v6 = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}_v6.cache";
if (file_exists($filename)) {
$ipaddr = dyndnsCheckIP($dyndns['interface']);
$cached_ip_s = explode(":", file_get_contents($filename));
@@ -149,6 +150,16 @@ include("head.inc");
echo "<font color='green'>";
echo htmlspecialchars($cached_ip);
echo "</font>";
+ } else if (file_exists($filename_v6)) {
+ $ipv6addr = get_interface_ipv6($dyndns['interface']);
+ $cached_ipv6_s = explode("@", file_get_contents($filename_v6));
+ $cached_ipv6 = $cached_ipv6_s[0];
+ if ($ipv6addr <> $cached_ipv6)
+ echo "<font color='red'>";
+ else
+ echo "<font color='green'>";
+ echo htmlspecialchars($cached_ipv6);
+ echo "</font>";
} else {
echo "N/A";
}
OpenPOWER on IntegriCloud