~Tun模式Redir-host支持
This commit is contained in:
juewuy
2022-12-08 22:57:32 +08:00
parent 42946a19fc
commit cc38eeeb47
5 changed files with 142 additions and 71 deletions

View File

@@ -933,10 +933,9 @@ clashcfg(){
elif [ "$num" = 4 ]; then
if modprobe tun &>/dev/null;then
redir_mod=Tun模式
dns_mod=fake-ip
else
read -p "未检测到Tun模块是否强制开启可能导致无法联网(1/0)" res
[ "$res" = '1' ] && redir_mod=Tun模式 && dns_mod=fake-ip
[ "$res" = '1' ] && redir_mod=Tun模式
fi
set_redir_config