summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-26 14:07:13 -0400
committerjim-p <jimp@pfsense.org>2012-06-26 14:07:13 -0400
commit53842a6c677ac718da26f20a097b40583b6f056b (patch)
tree68745d35f86980e38632bf145e4017f1b8eea9b0 /etc/inc/dyndns.class
parentcf5f7d7e17b30d59aa44265fd300cb1a9a306e53 (diff)
downloadpfsense-53842a6c677ac718da26f20a097b40583b6f056b.zip
pfsense-53842a6c677ac718da26f20a097b40583b6f056b.tar.gz
Add a small function to notify via remote methods only (smtp/growl). Notify when a dyndns IP changes.
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 9b97781..504dbf8 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -948,7 +948,8 @@
$wan_ip = $this->_checkIP();
conf_mount_rw();
if ($wan_ip > 0) {
- $currentTime = time();
+ $currentTime = time();
+ notify_all_remote(sprintf(gettext("DynDNS updated IP Address on %s (%s) to %s"), convert_real_interface_to_friendly_descr($this->_if), $this->_if, $wan_ip));
log_error("phpDynDNS: updating cache file {$this->_cacheFile}: {$wan_ip}");
@file_put_contents($this->_cacheFile, "{$wan_ip}:{$currentTime}");
} else
OpenPOWER on IntegriCloud