]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Allow async dns to compile -- but its still experimental and should not be used on...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 1 Feb 2006 16:21:39 +0000 (16:21 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 1 Feb 2006 16:21:39 +0000 (16:21 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3006 e03df62e-2008-0410-955e-edbf42e46eb7

src/dns.cpp

index d4fe1398b0d023131a6a0f471a1e90d9dad8b715..f6bba28daf7a35f53aa7c3bd8280a1925809da47 100644 (file)
@@ -819,7 +819,7 @@ void* dns_task(void* arg)
         DNS dns2;
         std::string host;
         std::string ip;
-        if (dns1.ReverseLookup(u->ip))
+        if (dns1.ReverseLookup((char*)inet_ntoa(dest->ip4)))
         {
                 while (!dns1.HasResult())
                 {
@@ -835,7 +835,7 @@ void* dns_task(void* arg)
                                         usleep(100);
                                 }
                                 ip = dns2.GetResultIP();
-                                if (ip == std::string(u->ip))
+                                if (ip == std::string((char*)inet_ntoa(dest->ip4)))
                                 {
                                         if (host.length() < 160)
                                         {