Add better way to handle trust level for proxy headers option

This commit is contained in:
Ilia Ross
2025-02-14 01:43:27 +02:00
parent e479ca3bdb
commit 1696eb4e48
8 changed files with 34 additions and 33 deletions

View File

@@ -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) {