(legacy) regression services_unbound.php

This commit is contained in:
Ad Schellevis 2016-02-25 17:00:46 +01:00
parent 22ed358690
commit b83aa0d8f7

View File

@ -76,7 +76,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (empty($pconfig['outgoing_interface'])) {
$input_errors[] = gettext("A single outgoing network interface needs to be selected for the DNS Resolver to use for outgoing DNS requests.");
}
if (!is_port($pconfig['port'])) {
if (!empty($pconfig['port']) && !is_port($pconfig['port'])) {
$input_errors[] = gettext("You must specify a valid port number.");
}