diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 761da3443..84a89b831 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= dyndns PLUGIN_VERSION= 1.1 -PLUGIN_REVISION= 1 +PLUGIN_REVISION= 2 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc index eab2e53d3..e66a9e23b 100644 --- a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc +++ b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc @@ -1119,15 +1119,11 @@ class updatedns { break; } - if($successful_update == true) { + if ($successful_update == true) { /* Write WAN IP to cache file */ $wan_ip = $this->_checkIP(); - $allinterfaces = legacy_config_get_interfaces(); - $friendlyintf = convert_real_interface_to_friendly_interface_name($this->_if); - $intfdescr = $allinterfaces[$friendlyintf]['descr']; if ($this->_useIPv6 == false && $wan_ip > 0) { $currentTime = time(); - notify_all_remote(sprintf(gettext("Dynamic DNS updated IP Address on %s (%s) to %s"), $intfdescr, $this->_if, $wan_ip)); log_error("Dynamic DNS: updating cache file {$this->_cacheFile}: {$wan_ip}"); @file_put_contents($this->_cacheFile, "{$wan_ip}|{$currentTime}"); } else { @@ -1135,7 +1131,6 @@ class updatedns { } if ($this->_useIPv6 == true && $wan_ip > 0) { $currentTime = time(); - notify_all_remote(sprintf(gettext("Dynamic DNS updated IPv6 Address on %s (%s) to %s"), $intfdescr, $this->_if, $wan_ip)); log_error("Dynamic DNS: updating cache file {$this->_cacheFile_v6}: {$wan_ip}"); @file_put_contents($this->_cacheFile_v6, "{$wan_ip}|{$currentTime}"); } else {