summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 0 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 1863cf5..156e4f4 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -302,8 +302,6 @@ function is_validaliasname($name) {
function is_port($port) {
if ((intval($port) < 1) || (intval($port) > 65535))
return false;
- else if (!getservbyname($port, "tcp") && !getservbyname($port, "udp"))
- return false;
else
return true;
}
OpenPOWER on IntegriCloud