diff options
| author | 2006-02-01 16:21:39 +0000 | |
|---|---|---|
| committer | 2006-02-01 16:21:39 +0000 | |
| commit | c36a817fa143a7919fb8e2c617937f9883fafd4f (patch) | |
| tree | 84c1301360a1409cd881986537eab1c88a2f9aed /src/dns.cpp | |
| parent | LEARN TO USE FUCKING EQ AND NOT == TO COMPARE FUCKING STRINGS (diff) | |
| download | inspircd++-c36a817fa143a7919fb8e2c617937f9883fafd4f.tar.gz inspircd++-c36a817fa143a7919fb8e2c617937f9883fafd4f.tar.bz2 inspircd++-c36a817fa143a7919fb8e2c617937f9883fafd4f.zip | |
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
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 4 |
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) { |
