From b83aa0d8f7578cf4639f7fdbd93b22ca838c5531 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 25 Feb 2016 17:00:46 +0100 Subject: [PATCH] (legacy) regression services_unbound.php --- src/www/services_unbound.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php index 0ebacd49f..6291e5c52 100644 --- a/src/www/services_unbound.php +++ b/src/www/services_unbound.php @@ -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."); }