mirror of
https://github.com/v2board/v2board.git
synced 2025-03-12 21:54:42 +08:00
Merge pull request #13 from ClashUS/origin/master
一些 Stash 和 Loon 的字段下发问题修正
This commit is contained in:
commit
94d548ecbd
@ -89,8 +89,7 @@ class Loon
|
||||
}
|
||||
}
|
||||
if ($server['tls']) {
|
||||
if ($server['network'] === 'tcp')
|
||||
array_push($config, 'over-tls=true');
|
||||
array_push($config, 'over-tls=true');
|
||||
if ($server['tlsSettings']) {
|
||||
$tlsSettings = $server['tlsSettings'];
|
||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||
|
@ -169,7 +169,9 @@ class Stash
|
||||
$array['server'] = $server['host'];
|
||||
$array['port'] = $server['port'];
|
||||
$array['uuid'] = $uuid;
|
||||
$array['flow'] = !empty($server['flow']) ? $server['flow']: "";
|
||||
$array['flow'] = (function($value){
|
||||
return in_array($value, [null, 'none', 'xtls-rprx-origin','xtls-rprx-direct','xtls-rprx-splice'], true) ? $value : null;
|
||||
})($server['flow'] ?? null);
|
||||
$array['client-fingerprint'] = 'chrome';
|
||||
$array['udp'] = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user