diff options
Diffstat (limited to 'src')
-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; } - - |