mirror of
https://github.com/anope/anope.git
synced 2026-07-07 14:23:13 +02:00
Fixed resolving hosts when connecting to our uplink
This commit is contained in:
+2
-1
@@ -191,7 +191,8 @@ static void Connect()
|
||||
if (!Config->LocalHost.empty())
|
||||
UplinkSock->Bind(Config->LocalHost);
|
||||
FOREACH_MOD(I_OnPreServerConnect, OnPreServerConnect());
|
||||
UplinkSock->Connect(u->host, u->port);
|
||||
DNSRecord req = DNSManager::BlockingQuery(u->host, u->ipv6 ? DNS_QUERY_AAAA : DNS_QUERY_A);
|
||||
UplinkSock->Connect(req.result, u->port);
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user