Revision 877676ee
Added by Renato Botelho over 8 years ago
src/usr/local/www/services_rfc2136.php | ||
---|---|---|
154 | 154 |
<td> |
155 | 155 |
<?php |
156 | 156 |
$filename = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}.cache"; |
157 |
$filename_v6 = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}_v6.cache"; |
|
157 | 158 |
$if = get_failover_interface($rfc2136['interface']); |
158 | 159 |
|
159 | 160 |
if (file_exists($filename)) { |
... | ... | |
181 | 182 |
|
182 | 183 |
print('<br />'); |
183 | 184 |
|
184 |
if (file_exists("{$filename}.ipv6")) {
|
|
185 |
if (file_exists($filename_v6)) {
|
|
185 | 186 |
print('IPv6: '); |
186 | 187 |
$ipaddr = get_interface_ipv6($if); |
187 |
$cached_ip_s = explode("|", file_get_contents("{$filename}.ipv6"));
|
|
188 |
$cached_ip_s = explode("|", file_get_contents($filename_v6));
|
|
188 | 189 |
$cached_ip = $cached_ip_s[0]; |
189 | 190 |
|
190 | 191 |
if ($ipaddr != $cached_ip) { |
Also available in: Unified diff
Use the same cache filename pattern for RFC2136 IPv6 items as used by dyndns