fix: 将Stash补支持Flow均替换为none

This commit is contained in:
ClashUS 2023-09-24 22:49:29 +08:00
parent 61ad9d6f43
commit 2b9540f9f2

View File

@ -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;