fixed server query

This commit is contained in:
Frank Harris 2026-06-07 09:06:49 -05:00
parent e6541370b9
commit a1e5331f4a
7 changed files with 221 additions and 13 deletions

View file

@ -77,6 +77,7 @@ Repair note:
- `Panel/modules/gamemanager/home_handling_functions.php` contains the status fallback.
- The port fallback intentionally parses full `ss`/`netstat` output instead of relying on one fixed field, because Cygwin and Linux output differ.
- The port fallback sends a generated command through the existing agent `exec` RPC. The grep expression must contain the numeric port directly, for example `[:.]2302([[:space:]]|$)`, not a shell-quoted value. If the regex contains quotes around the port, running servers can remain `UNKNOWN` after `server_status` is unavailable.
- The Windows and Linux agents report `ONLINE` when the configured game port is listening even if the managed screen/session is missing, with a warning in `last_error`.
## Game Monitor Display Rules