summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-03-02 10:13:37 -0300
committerRenato Botelho <renato@netgate.com>2017-03-02 10:13:37 -0300
commitd51cdd48d55fa440dec19f96bec43a93e30efe7a (patch)
treea1bf431e356b1b01586beac3fed9f5f238cf5865 /src/usr/local/www
parent6dbc42de35e83d8fe94b616d2f40cc5e171e9d61 (diff)
downloadpfsense-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/local/www')
-rw-r--r--src/usr/local/www/services_dyndns.php2
-rw-r--r--src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php2
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) {
OpenPOWER on IntegriCloud