mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
parent
98375c6341
commit
8c6b6ea296
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user