mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
commit
b58df71db4
@ -46,9 +46,9 @@ class QuantumultX
|
|||||||
if ($server['tlsSettings']) {
|
if ($server['tlsSettings']) {
|
||||||
$tlsSettings = json_decode($server['tlsSettings'], true);
|
$tlsSettings = json_decode($server['tlsSettings'], true);
|
||||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
array_push($config, 'tls-verification=' . $tlsSettings['allowInsecure'] ? 'false' : 'true');
|
array_push($config, 'tls-verification=' . ($tlsSettings['allowInsecure'] ? 'false' : 'true'));
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
array_push($config, "sni={$tlsSettings['serverName']}");
|
array_push($config, "tls-host={$tlsSettings['serverName']}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($server['network'] === 'ws') {
|
if ($server['network'] === 'ws') {
|
||||||
|
@ -39,7 +39,7 @@ class Surfboard
|
|||||||
if ($server['tlsSettings']) {
|
if ($server['tlsSettings']) {
|
||||||
$tlsSettings = json_decode($server['tlsSettings'], true);
|
$tlsSettings = json_decode($server['tlsSettings'], true);
|
||||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
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']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
array_push($config, "sni={$tlsSettings['serverName']}");
|
array_push($config, "sni={$tlsSettings['serverName']}");
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class Surge
|
|||||||
if ($server['tlsSettings']) {
|
if ($server['tlsSettings']) {
|
||||||
$tlsSettings = json_decode($server['tlsSettings'], true);
|
$tlsSettings = json_decode($server['tlsSettings'], true);
|
||||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
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']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
array_push($config, "sni={$tlsSettings['serverName']}");
|
array_push($config, "sni={$tlsSettings['serverName']}");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user