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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user