Skip to content
Browse files

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
  • Loading branch information...
1 parent c31e361 commit 63a5de13318322a3105e78061b36b37d5610844a @DarthGandalf DarthGandalf committed with kylef Mar 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 znc.cpp
View
2 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())) {

0 comments on commit 63a5de1

Please sign in to comment.
Something went wrong with that request. Please try again.