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:
+3
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user