Skip to content

Commit 0e5349e

Browse files
committed
fix(hlwon): match hlds_i686 process and hide fastdl
The WON server runs as hlds_i686 rather than hlds_linux, so the details port command and the HLDS PID lookup now match that binary for hlwon. FastDL is no longer offered for hlwon: protocol 46 clients predate sv_downloadurl, so the generated HTTP download setup would never be used.
1 parent b1d5a3a commit 0e5349e

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎lgsm/modules/core_getopt.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fi
9797
## Game server exclusive commands.
9898

9999
# FastDL command.
100-
if [ "${engine}" == "source" ] || [ "${engine}" == "goldsrc" ]; then
100+
if { [ "${engine}" == "source" ] || [ "${engine}" == "goldsrc" ]; } && [ "${shortname}" != "hlwon" ]; then
101101
currentopt+=("${cmd_fastdl[@]}")
102102
fi
103103

‎lgsm/modules/info_distro.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if [ "${status}" == "1" ]; then
1414
gameserverpid="$(TERM=screen tmux -L "${socketname}" list-sessions -F "#{session_name} #{pane_pid}" | grep "^${sessionname} " | awk '{print $NF}')"
1515
if [ "${engine}" == "source" ]; then
1616
srcdslinuxpid="$(pgrep -P "${gameserverpid}" -x srcds_linux 2> /dev/null | head -n 1)"
17+
elif [ "${shortname}" == "hlwon" ]; then
18+
hldslinuxpid="$(pgrep -P "${gameserverpid}" -x hlds_i686 2> /dev/null | head -n 1)"
1719
elif [ "${engine}" == "goldsrc" ]; then
1820
hldslinuxpid="$(pgrep -P "${gameserverpid}" -x hlds_linux 2> /dev/null | head -n 1)"
1921
fi

‎lgsm/modules/info_messages.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ fn_info_messages_ports() {
771771
portcommand="ss -tuplwn | grep Main"
772772
elif [ "${shortname}" == "sm" ]; then
773773
portcommand="ss -tuplwn | grep WSServer-Linux"
774+
elif [ "${shortname}" == "hlwon" ]; then
775+
portcommand="ss -tuplwn | grep hlds_i686"
774776
elif [ "${engine}" == "source" ]; then
775777
portcommand="ss -tuplwn | grep srcds_linux"
776778
elif [ "${engine}" == "goldsrc" ]; then

0 commit comments

Comments
 (0)