mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Add better way to handle trust level for proxy headers option
This commit is contained in:
@@ -1704,7 +1704,7 @@ if ($header{'user-agent'} =~ /webmin/i ||
|
||||
}
|
||||
|
||||
# Check for SSL authentication
|
||||
my $trust_ssl = $config{'trust_real_ip'} && !$config{'no_trust_ssl'};
|
||||
my $trust_ssl = $config{'trust_real_ip'} == 2;
|
||||
if ($use_ssl && $verified_client ||
|
||||
$trust_ssl && $header{'x-ssl-client-dn'}) {
|
||||
if ($use_ssl && $verified_client) {
|
||||
|
||||
Reference in New Issue
Block a user