diff options
author | Renato Botelho <renato@netgate.com> | 2017-03-02 10:21:09 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-02 10:21:09 -0300 |
commit | 474def89674f5c843d5bad80baf1470e889ac28d (patch) | |
tree | 5a9c172e25606890ed0cc0bc410caf8d46fd6050 /src/usr/local/www | |
parent | d51cdd48d55fa440dec19f96bec43a93e30efe7a (diff) | |
download | pfsense-474def89674f5c843d5bad80baf1470e889ac28d.zip pfsense-474def89674f5c843d5bad80baf1470e889ac28d.tar.gz |
Use the same cache filename pattern for RFC2136 IPv6 items as used by dyndns
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/services_rfc2136.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php index d5aadae..b933ae4 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -122,6 +122,7 @@ foreach ($a_rfc2136 as $rfc2136): <td> <?php $filename = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}.cache"; + $filename_v6 = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}_v6.cache"; $if = get_failover_interface($rfc2136['interface']); if (file_exists($filename)) { @@ -149,10 +150,10 @@ foreach ($a_rfc2136 as $rfc2136): print('<br />'); - if (file_exists("{$filename}.ipv6")) { + if (file_exists($filename_v6)) { print('IPv6: '); $ipaddr = get_interface_ipv6($if); - $cached_ip_s = explode("|", file_get_contents("{$filename}.ipv6")); + $cached_ip_s = explode("|", file_get_contents($filename_v6)); $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) { |