From e45aa48a91b34e5d8e50eadf92f9f9e30ee89970 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 8 Sep 2014 23:58:18 +0200 Subject: [PATCH] makeconf: limit the upper bound for allowed port to 65534 Safari/WebKit: "Not allowed to use restricted network port" --- src/znc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/znc.cpp b/src/znc.cpp index 50142f06..9734c799 100644 --- a/src/znc.cpp +++ b/src/znc.cpp @@ -590,7 +590,7 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) { do { bSuccess = true; while (true) { - if (!CUtils::GetNumInput("Listen on port", uListenPort, 1025, 65535)) { + if (!CUtils::GetNumInput("Listen on port", uListenPort, 1025, 65534)) { continue; } if (uListenPort == 6667) {