mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
Fix allowInsecure
This commit is contained in:
parent
f3ef9e457e
commit
16cf1f135a
@ -39,7 +39,7 @@ class Surfboard
|
||||
if ($server['tlsSettings']) {
|
||||
$tlsSettings = json_decode($server['tlsSettings'], true);
|
||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||
array_push($config, 'skip-cert-verify=' . $tlsSettings['allowInsecure'] ? 'true' : 'false');
|
||||
array_push($config, 'skip-cert-verify=' . ($tlsSettings['allowInsecure'] ? 'true' : 'false'));
|
||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||
array_push($config, "sni={$tlsSettings['serverName']}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user