feat: sing-box 支持 detour 参数(之前只能用 underlying-proxy 或 dialer-proxy 来设置)

This commit is contained in:
xream
2024-12-22 20:06:00 +08:00
parent fcc9d047ae
commit 0069b0ce83
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import $ from '@/core/app';
import { isIPv4, isIPv6 } from '@/utils';
const detourParser = (proxy, parsedProxy) => {
if (proxy['dialer-proxy']) parsedProxy.detour = proxy['dialer-proxy'];
parsedProxy.detour = proxy['dialer-proxy'] || proxy.detour;
};
const tfoParser = (proxy, parsedProxy) => {
parsedProxy.tcp_fast_open = false;