From 9bc4f0e2e430de5fff576ba456f7485b6cfe529d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 2 Feb 2006 16:52:26 +0000 Subject: Fixes to set correct resolver address before looking up host git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3019 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/socket.cpp b/src/socket.cpp index 9bc2f09e3..f42a4691f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -38,6 +38,7 @@ using namespace std; extern InspIRCd* ServerInstance; +extern ServerConfig* Config; extern time_t TIME; InspSocket* socket_ref[MAX_DESCRIPTORS]; @@ -95,6 +96,7 @@ InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long if (!inet_aton(host.c_str(),&addy)) { /* Its not an ip, spawn the resolver */ + this->dns.SetNS(std::string(Config->DNSServer)); this->dns.ForwardLookupWithFD(host,fd); timeout_end = time(NULL)+maxtime; timeout = false; -- cgit v1.2.3