mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Warn users about port 6667 in --makeconf
This should decrease chance of web browsers failing to connect to ZNC
This commit is contained in:
+10
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user