mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
v1.8.9c
~修复mix模式+nft模式cn绕过失效的bug ~增加自定义配置文件rule-set.json的导入
This commit is contained in:
parent
21aba94e04
commit
7f40ae54fc
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -5,4 +5,4 @@ meta_v=v1.18.0
|
|||
|
||||
singbox_v=1.7.8
|
||||
GeoIP_v=20240127
|
||||
versionsh=1.8.9b
|
||||
versionsh=1.8.9c
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) Juewuy
|
||||
|
||||
version=1.8.9b
|
||||
version=1.8.9c
|
||||
|
||||
setdir(){
|
||||
dir_avail(){
|
||||
|
|
|
@ -741,7 +741,7 @@ EOF
|
|||
mv -f ${TMPDIR}/jsons/${char}.json ${TMPDIR}/jsons_base #如果重复则临时备份
|
||||
}
|
||||
done
|
||||
for char in inbounds outbounds outbound_providers route;do
|
||||
for char in inbounds outbounds outbound_providers route rule-set;do
|
||||
[ -s ${CRASHDIR}/jsons/${char}.json ] && {
|
||||
ln -s ${CRASHDIR}/jsons/${char}.json ${TMPDIR}/jsons/cust_${char}.json
|
||||
}
|
||||
|
@ -1127,7 +1127,7 @@ start_nft(){ #nftables-allinone
|
|||
#仅代理本机局域网网段流量
|
||||
nft add rule inet shellcrash prerouting ip saddr != {$HOST_IP} return
|
||||
#绕过CN-IP
|
||||
[ "$dns_mod" = "redir_host" -a "$cn_ip_route" = "已开启" -a -f ${BINDIR}/cn_ip.txt ] && {
|
||||
[ "$dns_mod" != "fake-ip" -a "$cn_ip_route" = "已开启" -a -f ${BINDIR}/cn_ip.txt ] && {
|
||||
CN_IP=$(awk '{printf "%s, ",$1}' ${BINDIR}/cn_ip.txt)
|
||||
[ -n "$CN_IP" ] && nft add rule inet shellcrash prerouting ip daddr {$CN_IP} return
|
||||
}
|
||||
|
@ -1144,7 +1144,7 @@ start_nft(){ #nftables-allinone
|
|||
#仅代理本机局域网网段流量
|
||||
nft add rule inet shellcrash prerouting ip6 saddr != {$HOST_IP6} return
|
||||
#绕过CN_IPV6
|
||||
[ "$dns_mod" = "redir_host" -a "$cn_ipv6_route" = "已开启" -a -f ${BINDIR}/cn_ipv6.txt ] && {
|
||||
[ "$dns_mod" != "fake-ip" -a "$cn_ipv6_route" = "已开启" -a -f ${BINDIR}/cn_ipv6.txt ] && {
|
||||
CN_IP6=$(awk '{printf "%s, ",$1}' ${BINDIR}/cn_ipv6.txt)
|
||||
[ -n "$CN_IP6" ] && nft add rule inet shellcrash prerouting ip6 daddr {$CN_IP6} return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user