mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
Merge pull request #290 from betaxab/p1
Fixes Quantumult X tls-verification
This commit is contained in:
commit
855e3c1c26
@ -18,7 +18,8 @@ class QuantumultX
|
|||||||
$tlsSettings = json_decode($server->tlsSettings);
|
$tlsSettings = json_decode($server->tlsSettings);
|
||||||
array_push($config, 'obfs=over-tls');
|
array_push($config, 'obfs=over-tls');
|
||||||
if (isset($tlsSettings->allowInsecure)) {
|
if (isset($tlsSettings->allowInsecure)) {
|
||||||
array_push($config, $server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false');
|
// Tips: allowInsecure=false = tls-verification=true
|
||||||
|
array_push($config, $tlsSettings->allowInsecure ? 'tls-verification=false' : 'tls-verification=true');
|
||||||
}
|
}
|
||||||
if (isset($tlsSettings->serverName)) {
|
if (isset($tlsSettings->serverName)) {
|
||||||
array_push($config, "obfs-host={$tlsSettings->serverName}");
|
array_push($config, "obfs-host={$tlsSettings->serverName}");
|
||||||
@ -31,7 +32,7 @@ class QuantumultX
|
|||||||
$tlsSettings = json_decode($server->tlsSettings);
|
$tlsSettings = json_decode($server->tlsSettings);
|
||||||
array_push($config, 'obfs=wss');
|
array_push($config, 'obfs=wss');
|
||||||
if (isset($tlsSettings->allowInsecure)) {
|
if (isset($tlsSettings->allowInsecure)) {
|
||||||
array_push($config, $server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false');
|
array_push($config, $tlsSettings->allowInsecure ? 'tls-verification=false' : 'tls-verification=true');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
array_push($config, 'obfs=ws');
|
array_push($config, 'obfs=ws');
|
||||||
@ -55,7 +56,8 @@ class QuantumultX
|
|||||||
"password={$password}",
|
"password={$password}",
|
||||||
"over-tls=true",
|
"over-tls=true",
|
||||||
$server->server_name ? "tls-host={$server->server_name}" : "",
|
$server->server_name ? "tls-host={$server->server_name}" : "",
|
||||||
$server->allow_insecure ? 'tls-verification=true' : 'tls-verification=false',
|
// Tips: allowInsecure=false = tls-verification=true
|
||||||
|
$server->allow_insecure ? 'tls-verification=false' : 'tls-verification=true',
|
||||||
"fast-open=false",
|
"fast-open=false",
|
||||||
"udp-relay=false",
|
"udp-relay=false",
|
||||||
"tag={$server->name}"
|
"tag={$server->name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user