From ddf1d3a50e58bd7e65a18ad6c26d70951450f15b Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 6 Nov 2006 01:50:12 +0000 Subject: 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 --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.3