summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-01 16:21:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-01 16:21:39 +0000
commitc36a817fa143a7919fb8e2c617937f9883fafd4f (patch)
tree84c1301360a1409cd881986537eab1c88a2f9aed
parent4498f31e40b89f4fc4f0ffb146bf4411ba9c1a4b (diff)
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
-rw-r--r--src/dns.cpp4
1 files 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)
{