summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-05-04 08:16:28 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-05-04 08:16:28 -0400
commit06f1f5ab402011605f28ad43f3638bf9fea6a73a (patch)
treeceaf7c05595e27a0b05e5a3ffafb522e326d0053 /src/etc
parent5ea9394848c7c64fd0a4b214c1a142dd700cff1f (diff)
parenta4bda7563136a7b47a1d090cededdb1b1a076019 (diff)
downloadpfsense-06f1f5ab402011605f28ad43f3638bf9fea6a73a.zip
pfsense-06f1f5ab402011605f28ad43f3638bf9fea6a73a.tar.gz
Merge pull request #2929 from george-gwu/master
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/dyndns.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index bcc53b6..419c980 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -594,7 +594,7 @@
/* Setting Variables */
$hostname = "{$this->_dnsHost}.";
- $ZoneID = $this->_dnsZoneID;
+ $ZoneID = trim($this->_dnsZoneID);
$AccessKeyId = $this->_dnsUser;
$SecretAccessKey = $this->_dnsPass;
$NewIP = $this->_dnsIP;
@@ -630,7 +630,7 @@
}
/* Check if we need to update DNS Record */
- if ($OldIP !== $NewIP) {
+ if ($OldIP !== $NewIP || $OldTTL !== $NewTTL) {
if (!empty($OldIP)) {
/* Your Hostname already exists, deleting and creating it again */
$changes = array();
OpenPOWER on IntegriCloud