summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 16:52:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 16:52:26 +0000
commit9bc4f0e2e430de5fff576ba456f7485b6cfe529d (patch)
treedc29f8b047250602ec3c3fd5547a450edecdacb5 /src
parentbd9b965904651c84690be6d9fe293a4706bd9cb0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp2
1 files changed, 2 insertions, 0 deletions
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;