~增加srs-cn数据库
~修复mips自定义内核下载 ~修复iptables报错
This commit is contained in:
@@ -942,7 +942,8 @@ setcustcore(){ #自定义内核
|
||||
${CRASHDIR}/start.sh webget ${TMPDIR}/github_api https://api.github.com/repos/${project}/releases/${api_url}
|
||||
release_tag=$(cat ${TMPDIR}/github_api | grep '"tag_name":' | awk -F '"' '{print $4}')
|
||||
release_date=$(cat ${TMPDIR}/github_api | grep '"published_at":' | awk -F '"' '{print $4}')
|
||||
cat ${TMPDIR}/github_api | grep "browser_download_url" | grep -oE "https://github.com/${project}/releases/download.*linux.*${cpucore}.*\.gz\"$" | sed 's/"//' > ${TMPDIR}/core.list
|
||||
[ -n "$(echo $cpucore | grep mips)" ] && cpu_type=mips || cpu_type=$cpucore
|
||||
cat ${TMPDIR}/github_api | grep "browser_download_url" | grep -oE "https://github.com/${project}/releases/download.*linux.*${cpu_type}.*\.gz\"$" | sed 's/"//' > ${TMPDIR}/core.list
|
||||
rm -rf ${TMPDIR}/github_api
|
||||
#
|
||||
if [ -f ${TMPDIR}/core.list ];then
|
||||
|
||||
@@ -1137,7 +1137,7 @@ start_tun(){ #iptables-tun
|
||||
[ "$1" = "all" ] && ip6tables -t mangle -A PREROUTING -p tcp $ports -j shellcrashv6
|
||||
}
|
||||
fi
|
||||
} &
|
||||
}
|
||||
}
|
||||
start_nft(){ #nftables-allinone
|
||||
#获取局域网host地址
|
||||
|
||||
Reference in New Issue
Block a user