Skip to content

Commit c5bad68

Browse files
committed
fix(脚本): 修复singbox anytls添加用户不成功问题、修复singbox证书过期无法生效问题
1 parent d0b957e commit c5bad68

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

install.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,7 @@ renewalTLS() {
22592259
if [[ "${coreInstallType}" == "1" ]]; then
22602260
handleXray stop
22612261
elif [[ "${coreInstallType}" == "2" ]]; then
2262-
handleV2Ray stop
2262+
handleSingBox stop
22632263
fi
22642264

22652265
sudo "$HOME/.acme.sh/acme.sh" --cron --home "$HOME/.acme.sh"
@@ -6067,6 +6067,14 @@ addUser() {
60676067
clients=$(jq -r "${userConfig} = ${clients}" ${configPath}11_VMess_HTTPUpgrade_inbounds.json)
60686068
echo "${clients}" | jq . >${configPath}11_VMess_HTTPUpgrade_inbounds.json
60696069
fi
6070+
# anytls
6071+
if echo "${currentInstallProtocolType}" | grep -q ",13,"; then
6072+
local clients=
6073+
clients=$(initSingBoxClients 13 "${uuid}" "${email}")
6074+
6075+
clients=$(jq -r "${userConfig} = ${clients}" ${configPath}13_anytls_inbounds.json)
6076+
echo "${clients}" | jq . >${configPath}13_anytls_inbounds.json
6077+
fi
60706078
done
60716079
reloadCore
60726080
echoContent green " ---> 添加完成"
@@ -9496,7 +9504,7 @@ menu() {
94969504
cd "$HOME" || exit
94979505
echoContent red "\n=============================================================="
94989506
echoContent green "作者:mack-a"
9499-
echoContent green "当前版本:v3.4.32"
9507+
echoContent green "当前版本:v3.4.33"
95009508
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
95019509
echoContent green "描述:八合一共存脚本\c"
95029510
showInstallStatus

0 commit comments

Comments
 (0)