mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Support CF-Connecting-IPv6 header
This commit is contained in:
@@ -1452,7 +1452,8 @@ alarm(0);
|
||||
local $headerhost = $header{'x-forwarded-for'} ||
|
||||
$header{'x-real-ip'} ||
|
||||
$header{'true-client-ip'} ||
|
||||
$header{'cf-connecting-ip'};
|
||||
$header{'cf-connecting-ip'} ||
|
||||
$header{'cf-connecting-ip6'};
|
||||
if ($headerhost) {
|
||||
# Only real IPs are allowed
|
||||
$headerhost = undef if (!&check_ipaddress($headerhost) &&
|
||||
|
||||
Reference in New Issue
Block a user