mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
Merge pull request #281 from betaxab/patch-1
clash: add tls servername support
This commit is contained in:
commit
f8ea476bcc
@ -19,6 +19,7 @@ class Clash
|
||||
$tlsSettings = json_decode($server->tlsSettings);
|
||||
$array['tls'] = true;
|
||||
if (isset($tlsSettings->allowInsecure)) $array['skip-cert-verify'] = ($tlsSettings->allowInsecure ? true : false );
|
||||
if (isset($tlsSettings->serverName)) $array['servername'] = $tlsSettings->serverName;
|
||||
}
|
||||
if ($server->network == 'ws') {
|
||||
$array['network'] = $server->network;
|
||||
|
Loading…
Reference in New Issue
Block a user