From 1c6241ecd36b1f5492c71569492f54c22a8cb96b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 9 May 2005 23:43:32 +0000 Subject: Hit dns with spork. Repeat until crispy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1349 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dnsqueue.cpp') 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; } - -- cgit v1.3.1-10-gc9f91