]> jfr.im git - irc/rizon/znc.git/commitdiff
Ask for port > 1024 in --makeconf
authorAlexey Sokolov <redacted>
Sat, 10 Mar 2012 01:24:19 +0000 (08:24 +0700)
committerKyle Fuller <redacted>
Fri, 30 Mar 2012 16:30:03 +0000 (17:30 +0100)
There're so many people who try lower ports and get permission denied :(
Who really wants to use privileged port, can add it using /znc addport

znc.cpp

diff --git a/znc.cpp b/znc.cpp
index 9da44d11fb2a8a329bae03ecb5e583d196ff0b28..d2b99e0e034d12d187d9013d3b4ad8e89c1a900e 100644 (file)
--- a/znc.cpp
+++ b/znc.cpp
@@ -589,7 +589,7 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
 
        do {
                bSuccess = true;
-               while (!CUtils::GetNumInput("What port would you like ZNC to listen on?", uListenPort, 1, 65535)) ;
+               while (!CUtils::GetNumInput("What port would you like ZNC to listen on?", uListenPort, 1025, 65535)) ;
 
 #ifdef HAVE_LIBSSL
                if (CUtils::GetBoolInput("Would you like ZNC to listen using SSL?", !sSSL.empty())) {