From f9c08a2906e03008055cf513b19eae9ccf5089bf Mon Sep 17 00:00:00 2001 From: om Date: Sat, 13 Jan 2007 10:07:05 +0000 Subject: [PATCH] Test fix for breakage with IPv6 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_http_client.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index d015661c0..4b3edca55 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -147,7 +147,7 @@ bool HTTPSocket::DoRequest(HTTPClientRequest *req) this->port = url.port; strlcpy(this->host, url.domain.c_str(), MAXBUF); - if (!inet_aton(this->host, &this->addy)) + if (!insp_aton(this->host, &this->addy)) { bool cached; HTTPResolver* r = new HTTPResolver(this, Server, url.domain, cached, (Module*)Mod); @@ -343,5 +343,3 @@ extern "C" void *init_module(void) { return new ModuleHTTPClientFactory; } - - -- 2.39.5