summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2013-07-07 14:44:30 -0700
committerDaniel Becker <razzfazz@gmail.com>2013-07-10 19:00:46 -0700
commit93749c103f879631b2a5c97b572be927ef479b85 (patch)
tree158c619baf5ad3cc5e853654c53e33ea67d9a346
parente4ba18aa6e133a9b785fe3148f0b6a2297926391 (diff)
downloadpfsense-93749c103f879631b2a5c97b572be927ef479b85.zip
pfsense-93749c103f879631b2a5c97b572be927ef479b85.tar.gz
Add front-end support for dyndns AAAA updates
-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