Ask for port > 1024 in --makeconf

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
This commit is contained in:
Alexey Sokolov
2012-03-10 08:24:19 +07:00
parent aa9a629bf3
commit ddb1af86fd
+1 -1
View File
@@ -522,7 +522,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?", bListenSSL)) {