summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{