diff options
author | Renato Botelho <renato@netgate.com> | 2017-03-02 10:13:37 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-02 10:13:37 -0300 |
commit | d51cdd48d55fa440dec19f96bec43a93e30efe7a (patch) | |
tree | a1bf431e356b1b01586beac3fed9f5f238cf5865 /src/usr | |
parent | 6dbc42de35e83d8fe94b616d2f40cc5e171e9d61 (diff) | |
download | pfsense-d51cdd48d55fa440dec19f96bec43a93e30efe7a.zip pfsense-d51cdd48d55fa440dec19f96bec43a93e30efe7a.tar.gz |
Use | to separate dyndns IPv4 fields on cache file as done by rfc2136 items and for all IPv6 items
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/services_dyndns.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php index 3c7777a..cf4f471 100644 --- a/src/usr/local/www/services_dyndns.php +++ b/src/usr/local/www/services_dyndns.php @@ -151,7 +151,7 @@ foreach ($a_dyndns as $dyndns): $filename_v6 = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($hostname) . "{$dyndns['id']}_v6.cache"; if (file_exists($filename)) { $ipaddr = dyndnsCheckIP($dyndns['interface']); - $cached_ip_s = explode(":", file_get_contents($filename)); + $cached_ip_s = explode("|", file_get_contents($filename)); $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) { diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index 15f6952..3f6c530 100644 --- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -85,7 +85,7 @@ if ($_REQUEST['getdyndnsstatus']) { $filename_v6 = "{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($hostname) . "{$dyndns['id']}_v6.cache"; if (file_exists($filename)) { $ipaddr = dyndnsCheckIP($dyndns['interface']); - $cached_ip_s = explode(":", file_get_contents($filename)); + $cached_ip_s = explode("|", file_get_contents($filename)); $cached_ip = $cached_ip_s[0]; if ($ipaddr != $cached_ip) { |