fix bug with forwarded ip not being passed
This commit is contained in:
@@ -12,7 +12,7 @@ class bot_protection{
|
||||
$source = $_SERVER["REMOTE_ADDR"];
|
||||
}else{
|
||||
|
||||
$source = $_SERVER[explode(";", strtoupper(str_replace("-", "_", config::IP_SOURCE)))[0]];
|
||||
$source = $_SERVER["HTTP_" . explode(";", strtoupper(str_replace("-", "_", config::RATELIMIT_IP_SOURCE)))[0]];
|
||||
}
|
||||
|
||||
// check if its not a local IP. Probably local tor bridge, dont ratelimit
|
||||
|
||||
Reference in New Issue
Block a user