Warn users about port 6667 in --makeconf

This should decrease chance of web browsers failing to connect to ZNC
This commit is contained in:
Alexey Sokolov
2014-01-18 12:23:16 +00:00
parent 4e2c5e78f0
commit f456b274b5
+10 -1
View File
@@ -582,7 +582,16 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
do {
bSuccess = true;
while (!CUtils::GetNumInput("What port would you like ZNC to listen on?", uListenPort, 1025, 65535)) ;
while (true) {
if (!CUtils::GetNumInput("What port would you like ZNC to listen on?", uListenPort, 1025, 65535)) {
continue;
}
if (uListenPort == 6667 && !CUtils::GetBoolInput("Warning: Some web browsers reject port 6667. If you intend to use ZNC's web interface, you might want to use another port. Proceed with port 6667 anyway?", true)) {
continue;
}
break;
}
#ifdef HAVE_LIBSSL
if (CUtils::GetBoolInput("Would you like ZNC to listen using SSL?", bListenSSL)) {