From c36a817fa143a7919fb8e2c617937f9883fafd4f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Feb 2006 16:21:39 +0000 Subject: [PATCH] Allow async dns to compile -- but its still experimental and should not be used on a production network! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3006 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dns.cpp b/src/dns.cpp index d4fe1398b..f6bba28da 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -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) { -- 2.39.2