diff --git a/bin/update_domain.sh b/bin/update_domain.sh index b9ced38..9c12f61 100644 --- a/bin/update_domain.sh +++ b/bin/update_domain.sh @@ -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 "修改域名成功"