From 8ee7f904ffadbb81cc9b818d9a536bae87f01e7b Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sun, 19 Oct 2025 11:58:59 +0800 Subject: [PATCH] Fix bug where UUID was missing from nginx config path after changing port. --- sing-box.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index d977fda..ef31429 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -2900,7 +2900,7 @@ change_start_port() { [ -s ${WORK_DIR}/conf/${CONF_FILES[a]} ] && sed -i "s/\(.*listen_port.*:\)$((OLD_START_PORT+a))/\1$((START_PORT+a))/" ${WORK_DIR}/conf/* done fetch_nodes_value - [ -n "$PORT_NGINX" ] && export_nginx_conf_file + [ -n "$PORT_NGINX" ] && UUID_CONFIRM=$(sed -n 's#.*location[ ]\+\/\(.*\)-v[ml]ess.*#\1#gp' /etc/sing-box/nginx.conf | sed -n '1p') && export_nginx_conf_file cmd_systemctl enable sing-box [ -n "$ARGO_DOMAIN" ] && export_argo_json_file sleep 2 @@ -3576,4 +3576,4 @@ if [ "$NONINTERACTIVE_INSTALL" = 'noninteractive_install' ]; then else menu_setting menu -fi \ No newline at end of file +fi