diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-02 16:52:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-02 16:52:26 +0000 |
commit | 9bc4f0e2e430de5fff576ba456f7485b6cfe529d (patch) | |
tree | dc29f8b047250602ec3c3fd5547a450edecdacb5 | |
parent | bd9b965904651c84690be6d9fe293a4706bd9cb0 (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
-rw-r--r-- | src/socket.cpp | 2 |
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; |