From 91d8cc4c5be394e3e547f7a62bdc365004e7471d Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Aug 2011 15:25:02 -0400 Subject: [PATCH] Revert "Fixed resolving hosts on connect" This reverts commit 11619be8b97d7d8c28bc1ebbf6d412dff298b23d. --- src/sockets.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sockets.cpp b/src/sockets.cpp index 4327076bd..b7f0a5f9a 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -319,8 +319,7 @@ void SocketIO::Bind(Socket *s, const Anope::string &ip, int port) */ void SocketIO::Connect(ConnectionSocket *s, const Anope::string &target, int port) { - DNSRecord req = DNSManager::BlockingQuery(target, s->IsIPv6() ? DNS_QUERY_AAAA : DNS_QUERY_A); - s->conaddr.pton(s->IsIPv6() ? AF_INET6 : AF_INET, req.result, port); + s->conaddr.pton(s->IsIPv6() ? AF_INET6 : AF_INET, target, port); int c = connect(s->GetFD(), &s->conaddr.sa, s->conaddr.size()); if (c == -1) {