Make hostname optional for for DNS-O-Matic.

This resolves ticket #7601.

(cherry picked from commit 1ccc327f00)
This commit is contained in:
gizmotronic 2019-11-26 20:35:20 -06:00 committed by Renato Botelho do Couto
parent ab5ef410bd
commit fcb61f946f

View File

@ -84,8 +84,10 @@ if ($_POST['save'] || $_POST['force']) {
$reqdfieldsn = array(gettext("Service type"));
if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6") {
$reqdfields[] = "host";
$reqdfieldsn[] = gettext("Hostname");
if ($pconfig['type'] != "dnsomatic") {
$reqdfields[] = "host";
$reqdfieldsn[] = gettext("Hostname");
}
$reqdfields[] = "passwordfld";
$reqdfieldsn[] = gettext("Password");
$reqdfields[] = "username";