summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6a37a21c6..f695db7c4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -180,8 +180,8 @@ void UserResolver::OnLookupComplete(const std::string &result)
/* Check we didnt time out */
if (this->bound_user->registered != REG_ALL)
{
+#ifdef IPV6
const char *ip = this->bound_user->GetIPString();
-#ifdef IPv6
bound_user->res_forward = new UserResolver(this->ServerInstance, this->bound_user, result, (strstr(ip,"0::ffff:") == ip ? DNS_QUERY_A : DNS_QUERY_AAAA));
#else
bound_user->res_forward = new UserResolver(this->ServerInstance, this->bound_user, result, DNS_QUERY_A);