diff options
author | Peter Powell <petpow@saberuk.com> | 2019-02-07 15:34:41 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-04-15 12:21:12 +0100 |
commit | c2c4de7267db9835e36132364f422ba7d93f25d6 (patch) | |
tree | c165dda97b90d713cf25ddd7ddd000839c2e3405 /src/modules/m_spanningtree/utils.cpp | |
parent | e7b65ef5355d75dd32ea387da716a765090aff0e (diff) |
Fix linking servers with UNIX sockets.
- Remove the address/port overloads of BeginConnect.
- Change DoConnect to take a sockaddrs instead of an address/port.
Diffstat (limited to 'src/modules/m_spanningtree/utils.cpp')
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 1f2ed9c90..f78b8d4c0 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -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()); |