From 4300c4a02845c514afffc37fd53758b0a18dcc61 Mon Sep 17 00:00:00 2001 From: Qixiong Yuan Date: Mon, 29 Jan 2024 16:05:29 +0800 Subject: [PATCH] =?UTF-8?q?CN-IPV6=E7=BB=95=E8=BF=87=E5=93=88=E5=B8=8C?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=A4=A7=E5=88=B04096?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用mihomo的ipv6的cn列表有3300条左右,增加哈希表大小兼容更多的条目 --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 75000f0..9910d45 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -794,7 +794,7 @@ cn_ipv6_route(){ #CN-IPV6绕过 [ -f ${BINDIR}/cn_ipv6.txt -a -z "$(echo $redir_mod|grep 'Nft')" ] && { #ipv6 #see https://ispip.clang.cn/all_cn_ipv6.txt - echo "create cn_ip6 hash:net family inet6 hashsize 2048 maxelem 2048" > ${TMPDIR}/cn6_$USER.ipset + echo "create cn_ip6 hash:net family inet6 hashsize 4096 maxelem 4096" > ${TMPDIR}/cn6_$USER.ipset awk '!/^$/&&!/^#/{printf("add cn_ip6 %s'" "'\n",$0)}' ${BINDIR}/cn_ipv6.txt >> ${TMPDIR}/cn6_$USER.ipset ipset -! flush cn_ip6 2>/dev/null ipset -! restore < ${TMPDIR}/cn6_$USER.ipset