diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php index 4c09cca3f1..031a77f97f 100644 --- a/src/usr/local/www/services_dyndns_edit.php +++ b/src/usr/local/www/services_dyndns_edit.php @@ -73,7 +73,7 @@ if ($_POST['save'] || $_POST['force']) { unset($input_errors); $pconfig = $_POST; - if (($pconfig['type'] == "freedns" || $pconfig['type'] == "freedns-v6" || $pconfig['type'] == "namecheap" || $pconfig['type'] == "digitalocean" || $pconfig['type'] == "linode" || $pconfig['type'] == "linode-v6") && $_POST['username'] == "") { + if (($pconfig['type'] == "freedns" || $pconfig['type'] == "freedns-v6" || $pconfig['type'] == "namecheap" || $pconfig['type'] == "digitalocean" || $pconfig['type'] == "digitalocean-v6") || $pconfig['type'] == "linode" || $pconfig['type'] == "linode-v6") && $_POST['username'] == "") { $_POST['username'] = "none"; } @@ -114,8 +114,7 @@ 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']; + } elseif ((($pconfig['type'] == "digitalocean") || ($pconfig['type'] == "digitalocean-v6")) && ($_POST['host'] == '@.' || $_POST['host'] == '@')) { } elseif (($pconfig['type'] == "linode") || ($pconfig['type'] == "linode-v6")) { $host_to_check = $_POST['host'] == '@' ? $_POST['domainname'] : ( $_POST['host'] . '.' . $_POST['domainname'] ); $allow_wildcard = true; @@ -550,6 +549,7 @@ events.push(function() { hideInput('ttl', true); break; case "digitalocean": + case "digitalocean-v6": hideGroupInput('domainname', false); hideInput('resultmatch', true); hideInput('updateurl', true);