diff options
author | Adam <Adam@anope.org> | 2011-08-14 15:27:20 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-14 15:27:20 -0400 |
commit | 78b8b307663b523964d728b39c9c8d51a544417a (patch) | |
tree | 78f26946603d13403de1080b65d235760f6a8379 | |
parent | 91d8cc4c5be394e3e547f7a62bdc365004e7471d (diff) |
Fixed resolving hosts when connecting to our uplink
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 401431683..875e4eeb6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); } /*************************************************************************/ |