mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
CN-IPV6绕过哈希表增大到4096
使用mihomo的ipv6的cn列表有3300条左右,增加哈希表大小兼容更多的条目
This commit is contained in:
parent
1a621cb4a0
commit
4300c4a028
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user