summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-06 01:50:12 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-06 01:50:12 +0000
commitddf1d3a50e58bd7e65a18ad6c26d70951450f15b (patch)
tree2dd9daa89c73ccd84156d2d62875e878daa93044 /src/users.cpp
parentac755a31c3c0422b372d9978eb4255e5aa72ff56 (diff)
Fix IPv4 resolution, spank satmd if you were affected by this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5659 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 0b0e5f58b..6a37a21c6 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -181,7 +181,11 @@ void UserResolver::OnLookupComplete(const std::string &result)
if (this->bound_user->registered != REG_ALL)
{
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);
+#endif
this->ServerInstance->AddResolver(bound_user->res_forward);
}
}