]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixes to set correct resolver address before looking up host
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Feb 2006 16:52:26 +0000 (16:52 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Feb 2006 16:52:26 +0000 (16:52 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3019 e03df62e-2008-0410-955e-edbf42e46eb7

src/socket.cpp

index 9bc2f09e38772b885c6b724dd2c57565edc44688..f42a4691ff88a9c8fc22d454b64874b1c81c63fa 100644 (file)
@@ -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;