diff options
| author | 2007-08-19 16:00:57 +0000 | |
|---|---|---|
| committer | 2007-08-19 16:00:57 +0000 | |
| commit | df4f0dc888a2a24e7f8b42a1c21670679e633506 (patch) | |
| tree | 6fb90acdb5ad14510b53045d0f414316792466c9 /src/modules/m_http_client.cpp | |
| parent | Add load warning, as suggested by Bricker (diff) | |
| download | inspircd++-df4f0dc888a2a24e7f8b42a1c21670679e633506.tar.gz inspircd++-df4f0dc888a2a24e7f8b42a1c21670679e633506.tar.bz2 inspircd++-df4f0dc888a2a24e7f8b42a1c21670679e633506.zip | |
Allow support for multiple dns results per request. This is a significant change and should probably not be backported to stable.
This will allow for a fix to feature request bug #384
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7753 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_http_client.cpp')
| -rw-r--r-- | src/modules/m_http_client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index 35b93b581..7e1b94f11 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -56,9 +56,10 @@ class HTTPResolver : public Resolver { } - void OnLookupComplete(const string &result, unsigned int ttl, bool cached) + void OnLookupComplete(const string &result, unsigned int ttl, bool cached, int resultnum = 0) { - socket->Connect(result); + if (!resultnum) + socket->Connect(result); } void OnError(ResolverError e, const string &errmsg) |
