~增加srs-cn数据库

~修复mips自定义内核下载
~修复iptables报错
This commit is contained in:
juewuy 2024-02-02 10:13:16 +08:00
parent dea424229c
commit 6e98ed595a
3 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,8 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with: with:
repository: juewuy/ShellCrash repository: juewuy/ShellCrash
ref: dev fetch-depth: 1
- name: Apt Update - name: Apt Update
env: env:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive

View File

@ -942,7 +942,8 @@ setcustcore(){ #自定义内核
${CRASHDIR}/start.sh webget ${TMPDIR}/github_api https://api.github.com/repos/${project}/releases/${api_url} ${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_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}') 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 rm -rf ${TMPDIR}/github_api
# #
if [ -f ${TMPDIR}/core.list ];then if [ -f ${TMPDIR}/core.list ];then

View File

@ -1137,7 +1137,7 @@ start_tun(){ #iptables-tun
[ "$1" = "all" ] && ip6tables -t mangle -A PREROUTING -p tcp $ports -j shellcrashv6 [ "$1" = "all" ] && ip6tables -t mangle -A PREROUTING -p tcp $ports -j shellcrashv6
} }
fi fi
} & }
} }
start_nft(){ #nftables-allinone start_nft(){ #nftables-allinone
#获取局域网host地址 #获取局域网host地址