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:25:20 -0300 |
commit | 877676ee199a399ae5495543b080527bd34037f7 (patch) | |
tree | bab70a90102ec57bb3f97c4f019356c30488a073 /src/usr | |
parent | 5be33f49c5d5d70d9a11822f77eff3a312b43545 (diff) | |
download | pfsense-877676ee199a399ae5495543b080527bd34037f7.zip pfsense-877676ee199a399ae5495543b080527bd34037f7.tar.gz |
Use the same cache filename pattern for RFC2136 IPv6 items as used by dyndns
Diffstat (limited to 'src/usr')
-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 e4f86d1..7b2b10a 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -154,6 +154,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)) { @@ -181,10 +182,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) { |