From f9c08a2906e03008055cf513b19eae9ccf5089bf Mon Sep 17 00:00:00 2001 From: om Date: Sat, 13 Jan 2007 10:07:05 +0000 Subject: 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(-) (limited to 'src') 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; } - - -- cgit v1.2.3