v1.4.3-release
~同步最新1.6.5官方核心文件 ~同步最新IP数据库文件 ~自启脚本的启动优先级调整为99(请重新开关一次开机启动功能) ~redir模式增加强行开启fakeip的开关 ~更新脚本时将强制关闭clash服务,以防止各种报错 ~增加对vyos使用show作为默认sh的判断 ~现在只有开启本机代理后才会代理本机的docker流量
This commit is contained in:
@@ -985,7 +985,7 @@ testcommand(){
|
||||
elif [ "$num" = 1 ]; then
|
||||
$clashdir/start.sh stop
|
||||
echo -----------------------------------------------
|
||||
$clashdir/clash -t -d $clashdir
|
||||
[ -x $clashdir/clash ] && $clashdir/clash -t -d $clashdir
|
||||
[ "$?" = 0 ] && testover=32m测试通过!|| testover=31m出现错误!请截图后到TG群询问!!!
|
||||
echo -e "\033[$testover\033[0m"
|
||||
exit;
|
||||
|
||||
@@ -343,7 +343,7 @@ start_redir(){
|
||||
iptables -t nat -I PREROUTING -p tcp -d 8.8.8.8 -j clash
|
||||
iptables -t nat -I PREROUTING -p tcp -d 8.8.4.4 -j clash
|
||||
#Docker特殊处理
|
||||
iptables -t nat -I PREROUTING -s 172.16.0.0/12 -j clash
|
||||
[ "$local_proxy" = "已开启" ] && iptables -t nat -I PREROUTING -s 172.16.0.0/12 -j clash
|
||||
#设置ipv6转发
|
||||
ip6_nat=$(ip6tables -t nat -L 2>&1 | grep -o 'Chain')
|
||||
if [ -n "$ip6_nat" -a "$ipv6_support" = "已开启" ];then
|
||||
|
||||
Reference in New Issue
Block a user