1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 08:56:37 +02:00

Allow multiple IP addresses in extforward_ip separated by spaces

This commit is contained in:
linuxdaemon
2019-01-03 20:07:01 -06:00
committed by Adam
parent 6fbb7cffe9
commit cf44418e10
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ class MyHTTPClient : public HTTPClient
return;
}
if (this->ip == this->provider->ext_ip)
if (std::find(this->provider->ext_ips.begin(), this->provider->ext_ips.end(), this->ip) != this->provider->ext_ips.end())
{
for (unsigned i = 0; i < this->provider->ext_headers.size(); ++i)
{
@@ -435,7 +435,7 @@ class HTTPD : public Module
}
p->ext_ip = ext_ip;
spacesepstream(ext_ip).GetTokens(p->ext_ips);
spacesepstream(ext_header).GetTokens(p->ext_headers);
}