From f07100c07483e3d13c3646f5fb74650a5258bf27 Mon Sep 17 00:00:00 2001 From: svefnz Date: Wed, 8 Jul 2026 12:35:46 +0800 Subject: [PATCH] fix: override caddy-based node client port to 443 when HAProxy is active --- src/core.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core.sh b/src/core.sh index 284ddbc..476a1bc 100644 --- a/src/core.sh +++ b/src/core.sh @@ -1597,6 +1597,11 @@ info() { [[ $custom_remarks ]] && url_remarks=$custom_remarks [[ $is_remarks ]] && url_remarks=$is_remarks + # If HAProxy is active, the public HTTPS port is 443 (routed to Caddy on 4443) + if systemctl is-active --quiet haproxy >/dev/null 2>&1; then + is_https_port=443 + fi + # is_color=$(shuf -i 41-45 -n1) is_color=44 case $net in