]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/utils.cpp
Fix broken linking over IPv4 on IPv6 capable systems.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / utils.cpp
index 1f2ed9c90ea9acf61ff55fd64bcc6e9c5b5c29fc..f78b8d4c02498bebc3aef7d6b86b147de2b6503c 100644 (file)
@@ -303,7 +303,7 @@ void SpanningTreeUtilities::ReadConfiguration()
                        ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Configuration warning: Link block '" + L->Name + "' has no IP defined! This will allow any IP to connect as this server, and MAY not be what you want.");
                }
 
-               if (!L->Port)
+               if (!L->Port && L->IPAddr.find('/') == std::string::npos)
                        ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Configuration warning: Link block '" + L->Name + "' has no port defined, you will not be able to /connect it.");
 
                L->Fingerprint.erase(std::remove(L->Fingerprint.begin(), L->Fingerprint.end(), ':'), L->Fingerprint.end());