fix:为修复部分设备ip6tables报错,将ipv6dns的兜底行为由reject改为了return

This commit is contained in:
juewuy
2024-04-28 21:33:57 +08:00
parent de4ddea6d3
commit 3089db422e
6 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,5 +4,5 @@ clash_v=v1.7.1
meta_v=v1.18.1
singboxp_v=1.9.0-beta.16-3140e7ac
singbox_v=1.8.8
versionsh=1.9.1beta7
versionsh=1.9.1beta7fix
GeoIP_v=20240427

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) Juewuy
version=1.9.1beta7
version=1.9.1beta7fix
setdir(){
dir_avail(){

View File

@@ -969,8 +969,8 @@ start_ipt_dns() { #iptables-dns通用工具
done
fi
[ "$1" = 'ip6tables' ] && {
$1 -t nat -A $3 -p tcp -m comment --comment "ShellCrash-IPV6_DNS-REJECT" -j REJECT
$1 -t nat -A $3 -p udp -m comment --comment "ShellCrash-IPV6_DNS-REJECT" -j REJECT
$1 -t nat -A $3 -p tcp -j RETURN
$1 -t nat -A $3 -p udp -j RETURN
}
$1 -t nat -I $2 -p tcp --dport 53 -j $3
$1 -t nat -I $2 -p udp --dport 53 -j $3