mirror of
https://github.com/v2board/v2board.git
synced 2025-03-12 21:54:42 +08:00
fix: 将Stash补支持Flow均替换为none
This commit is contained in:
parent
61ad9d6f43
commit
2b9540f9f2
@ -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