From ee0d8ea0f8253e244fe9506b477d503345c08862 Mon Sep 17 00:00:00 2001 From: SamNet-dev Date: Sat, 7 Feb 2026 22:35:12 -0600 Subject: [PATCH] fix: show correct server address in client status display The menu status line showed Port: 8443 for clients because it used the server-only LISTEN_PORT variable. Clients now show their actual REMOTE_SERVER address instead. --- paqctl.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/paqctl.sh b/paqctl.sh index e8d5c5a..7d42cce 100644 --- a/paqctl.sh +++ b/paqctl.sh @@ -6684,10 +6684,16 @@ show_menu() { # Paqet status if [ "$paqet_installed" = true ]; then - if is_paqet_running; then - echo -e " Paqet: ${GREEN}● Running${NC} | Port: ${LISTEN_PORT:-8443} | SOCKS5: 127.0.0.1:${SOCKS_PORT:-1080}" + local _paqet_info="" + if [ "$ROLE" = "server" ]; then + _paqet_info="Port: ${LISTEN_PORT:-8443}" else - echo -e " Paqet: ${RED}○ Stopped${NC} | Port: ${LISTEN_PORT:-8443}" + _paqet_info="Server: ${REMOTE_SERVER:-N/A}" + fi + if is_paqet_running; then + echo -e " Paqet: ${GREEN}● Running${NC} | ${_paqet_info} | SOCKS5: 127.0.0.1:${SOCKS_PORT:-1080}" + else + echo -e " Paqet: ${RED}○ Stopped${NC} | ${_paqet_info}" fi else echo -e " Paqet: ${DIM}not installed${NC}"