summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-13 10:07:05 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-13 10:07:05 +0000
commitf9c08a2906e03008055cf513b19eae9ccf5089bf (patch)
treefd8b3b02100f461894eb46c750c2a91c88f4ea72 /src
parent557de97a72b13eb60d77bfbf5ad679990d0ef5f8 (diff)
Test fix for breakage with IPv6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_http_client.cpp4
1 files changed, 1 insertions, 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;
}
-
-