From 0b230bb2957d32059ea4610965a9507346a1d3e9 Mon Sep 17 00:00:00 2001 From: Tom Embt Date: Thu, 17 Jan 2019 19:17:39 -0500 Subject: [PATCH] Allow Dynamic DNS wildcards for Route53 #9053 --- src/usr/local/www/services_dyndns_edit.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php index 0c55dc46d7..e6b6f3cd42 100644 --- a/src/usr/local/www/services_dyndns_edit.php +++ b/src/usr/local/www/services_dyndns_edit.php @@ -120,6 +120,9 @@ if ($_POST['save'] || $_POST['force']) { } elseif (($pconfig['type'] == "linode") || ($pconfig['type'] == "linode-v6")) { $host_to_check = $_POST['host'] == '@' ? $_POST['domainname'] : ( $_POST['host'] . '.' . $_POST['domainname'] ); $allow_wildcard = true; + } elseif (($pconfig['type'] == "route53") || ($pconfig['type'] == "route53-v6")) { + $host_to_check = $_POST['host']; + $allow_wildcard = true; } else { $host_to_check = $_POST['host']; @@ -475,8 +478,6 @@ events.push(function() { break; case "dnsimple": - case "route53-v6": - case "route53": hideGroupInput('domainname', true); hideInput('resultmatch', true); hideInput('updateurl', true); @@ -490,6 +491,21 @@ events.push(function() { hideInput('zoneid', false); hideInput('ttl', false); break; + case "route53-v6": + case "route53": + hideGroupInput('domainname', true); + hideInput('resultmatch', true); + hideInput('updateurl', true); + hideInput('requestif', true); + hideCheckbox('curl_ipresolve_v4', true); + hideCheckbox('curl_ssl_verifypeer', false); + hideInput('host', false); + hideInput('mx', true); + hideCheckbox('wildcard', true); + hideCheckbox('proxied', true); + hideInput('zoneid', false); + hideInput('ttl', false); + break; case "namecheap": case "gratisdns": case "hover":