适配 mihomo 内核 Tun 新特性

详见:https://wiki.metacubex.one/config/inbound/tun/#stack
This commit is contained in:
DustinWin
2026-09-14 22:46:18 +08:00
committed by GitHub
parent de1d9e20f7
commit 2ecd389afe
+1 -1
View File
@@ -7,7 +7,7 @@ prepare_clash_base_config() {
external="external-controller: 0.0.0.0:$db_port" external="external-controller: 0.0.0.0:$db_port"
if [ "$redir_mod" = "Mix" -o "$redir_mod" = "Tun" ]; then if [ "$redir_mod" = "Mix" -o "$redir_mod" = "Tun" ]; then
[ "$crashcore" = 'meta' ] && tun_meta=', device: utun, auto-route: false, auto-detect-interface: false' [ "$crashcore" = 'meta' ] && tun_meta=', device: utun, auto-route: false, auto-detect-interface: false'
tun="tun: {enable: true, stack: system$tun_meta}" tun="tun: {enable: true, stack: mips$tun_meta}"
else else
tun='tun: {enable: false}' tun='tun: {enable: false}'
fi fi