diff options
| author | 2007-01-13 10:07:05 +0000 | |
|---|---|---|
| committer | 2007-01-13 10:07:05 +0000 | |
| commit | f9c08a2906e03008055cf513b19eae9ccf5089bf (patch) | |
| tree | fd8b3b02100f461894eb46c750c2a91c88f4ea72 /src/modules/m_http_client.cpp | |
| parent | Improve handling of backend server being down. Also decraq some debug output ... (diff) | |
| download | inspircd++-f9c08a2906e03008055cf513b19eae9ccf5089bf.tar.gz inspircd++-f9c08a2906e03008055cf513b19eae9ccf5089bf.tar.bz2 inspircd++-f9c08a2906e03008055cf513b19eae9ccf5089bf.zip | |
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/modules/m_http_client.cpp')
| -rw-r--r-- | src/modules/m_http_client.cpp | 4 |
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; } - - |
