This commit is contained in:
Olia Lisa 2026-01-10 21:20:27 +08:00
parent 80e3e3f1a6
commit 6ee019aeca

View File

@ -25,7 +25,7 @@ update_domain(){
# 是否存在acme域名, 存在则修改
local acme_exists=$(jq -r 'has("inbounds") and (.inbounds[0] | has("tls")) and (.inbounds[0].tls | has("acme"))' "$config_file")
if [[ "$acme_exists" == "true" ]]; then
modify_json_file "$config_file" ".inbounds[0].tls.acme.domains[0]" "$domain"
modify_json_file "$config_file" ".inbounds[0].tls.acme.domain[0]" "$domain"
fi
echo "修改域名成功"