diff options
author | Grant Sheehan <gsheehan@gmail.com> | 2018-12-05 22:33:11 -0700 |
---|---|---|
committer | jim-p <jimp@netgate.com> | 2018-12-11 15:10:49 -0500 |
commit | 230c1808100014f02cda3c6305f88ad07cd2f05b (patch) | |
tree | 20ab7c272735cadfe520e7cf128ddd460d4ec91a /src/usr/local/www | |
parent | edd3bc4740565c1e2adc421c4c287db1e43ad7e0 (diff) | |
download | pfsense-230c1808100014f02cda3c6305f88ad07cd2f05b.zip pfsense-230c1808100014f02cda3c6305f88ad07cd2f05b.tar.gz |
Fix DigitalOcean DynDNS client
Fixes the check on the return value since it's been updated to use
HTTP/2 syntax. Also adds logic to allow using `@` to denote updating the
root domain A record as well.
(cherry picked from commit 5878d529949aafef165acdce8e7daae234c9d2c4)
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/services_dyndns_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php index 5442adc..2f09532 100644 --- a/src/usr/local/www/services_dyndns_edit.php +++ b/src/usr/local/www/services_dyndns_edit.php @@ -113,6 +113,8 @@ if ($_POST['save'] || $_POST['force']) { $host_to_check = $_POST['domainname']; } elseif ((($pconfig['type'] == "godaddy") || ($pconfig['type'] == "godaddy-v6")) && ($_POST['host'] == '@.' || $_POST['host'] == '@')) { $host_to_check = $_POST['domainname']; + } elseif (($pconfig['type'] == "digitalocean") && ($_POST['host'] == '@.' || $_POST['host'] == '@')) { + $host_to_check = $_POST['domainname']; } else { $host_to_check = $_POST['host']; @@ -300,7 +302,7 @@ $group->setHelp('Enter the complete fully qualified domain name. Example: myhost 'GleSYS: Enter the record ID.%1$s' . 'DNSimple: Enter only the domain name.%1$s' . 'Namecheap, Cloudflare, GratisDNS, Hover, ClouDNS, GoDaddy: Enter the hostname and the domain separately, with the domain being the domain or subdomain zone being handled by the provider.%1$s' . - 'Cloudflare: Enter @ as the hostname to indicate an empty field.', '<br />'); + 'Cloudflare and DigitalOcean: Enter @ as the hostname to indicate an empty field.', '<br />'); $section->add($group); |