summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-21 15:57:57 -0500
committerAdam <Adam@anope.org>2010-12-21 15:57:57 -0500
commit18377ac9fd36065bfd791b5cea51de9ae1d2b11d (patch)
tree621f23e6139c4083b957ddf27ec15ab0deb71345 /src/main.cpp
parent21125cf2cb0dc5f80f9f796fe4c222c36ba2fcc4 (diff)
Allow hostmasks to be in uplink:host
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 180af0729..c3c5b0eec 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -365,10 +365,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)
{