]> jfr.im git - irc/znc/coverity.git/commitdiff
Extend port warning to 6697
authorUjjwal Sharma <redacted>
Sun, 28 Jun 2020 11:17:25 +0000 (16:47 +0530)
committerUjjwal Sharma <redacted>
Sun, 28 Jun 2020 17:03:14 +0000 (22:33 +0530)
src/znc.cpp

index 9ecc1c50528df4cee4f5f2608c2342b8d03f4d31..481534e51aec4ee2bbccaac39f6275b71a924496 100644 (file)
@@ -661,14 +661,14 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
                                      65534)) {
                 continue;
             }
-            if (uListenPort == 6667) {
+            if (uListenPort == 6667 || uListenPort == 6697) {
                 CUtils::PrintStatus(false,
-                                    "WARNING: Some web browsers reject port "
-                                    "6667. If you intend to");
+                                    "WARNING: Some web browsers reject ports "
+                                    "6667 and 6697. If you intend to");
                 CUtils::PrintStatus(false,
                                     "use ZNC's web interface, you might want "
                                     "to use another port.");
-                if (!CUtils::GetBoolInput("Proceed with port 6667 anyway?",
+                if (!CUtils::GetBoolInput("Proceed anyway?",
                                           true)) {
                     continue;
                 }