diff options
author | George <george-gwu@users.noreply.github.com> | 2016-05-03 16:25:13 -0400 |
---|---|---|
committer | George <george-gwu@users.noreply.github.com> | 2016-05-03 16:25:13 -0400 |
commit | a4bda7563136a7b47a1d090cededdb1b1a076019 (patch) | |
tree | f4083e350935274aa79ad675947cf11a25515688 /src/etc | |
parent | 5a0235caa1600f4ea9601edcbfedab48b837174e (diff) | |
download | pfsense-a4bda7563136a7b47a1d090cededdb1b1a076019.zip pfsense-a4bda7563136a7b47a1d090cededdb1b1a076019.tar.gz |
Bug fixes to Route53 DynDNS
Fixed a bug regarding a leading space in $ZoneID that causes an AWS 505 error. Also adds support for updating DNS if TTL changes.
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/dyndns.class | 4 |
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(); |