summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/services_dyndns_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index ff114ce..97de1fd 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -116,8 +116,9 @@ if ($_POST) {
else
$host_to_check = $_POST['host'];
- if (!is_domain($host_to_check))
- $input_errors[] = gettext("The Hostname contains invalid characters.");
+ if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6")
+ if (!is_domain($host_to_check))
+ $input_errors[] = gettext("The hostname contains invalid characters.");
unset($host_to_check);
}
OpenPOWER on IntegriCloud