diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-09 23:43:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-09 23:43:32 +0000 |
commit | 1c6241ecd36b1f5492c71569492f54c22a8cb96b (patch) | |
tree | 434c4fb9ad964906652559ac3ada0631c35501f2 /src/dnsqueue.cpp | |
parent | 8399a0bede79afd8f8a7cb23a4ded974584d437a (diff) |
Hit dns with spork. Repeat until crispy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1349 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r-- | src/dnsqueue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 1e1aa33c8..aca0b07a9 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -193,8 +193,8 @@ public: if (usr) { log(DEBUG,"New Lookup class for %s with DNSServer set to '%s'",nick.c_str(),DNSServer); - resolver.SetNS(DNSServer); - if (!resolver.ReverseLookup(usr->host)) + resolver.SetNS(std::string(DNSServer)); + if (!resolver.ReverseLookup(std::string(usr->host))) return false; strlcpy(u,nick.c_str(),NICKMAX); return true; @@ -210,6 +210,7 @@ public: if (resolver.GetFD() != 0) { std::string hostname = resolver.GetResult(); + log(DEBUG,"RESULT! %s",hostname.c_str()); usr = Find(u); if (usr) { @@ -307,4 +308,3 @@ void dns_poll() max_fd_alloc = p; } - |