1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 09:56:38 +02:00

Allow hostmasks to be in uplink:host

(cherry picked from commit 18377ac9fd)
This commit is contained in:
Adam
2010-12-21 15:57:57 -05:00
parent faf1e3710e
commit a2a6708f1a
4 changed files with 50 additions and 12 deletions
+3 -1
View File
@@ -361,10 +361,12 @@ static bool Connect()
return true;
}
DNSRecord req = DNSManager::BlockingQuery(uplink_server->host, uplink_server->ipv6 ? DNS_QUERY_AAAA : DNS_QUERY_A);
try
{
new UplinkSocket(uplink_server->ipv6);
UplinkSock->Connect(uplink_server->host, uplink_server->port, Config->LocalHost);
UplinkSock->Connect(req.result, uplink_server->port, Config->LocalHost);
}
catch (const SocketException &ex)
{