dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
653 stars 167 forks source link

Server IP address & port not set with compiled hlds_linux #863

Open Broatcast opened 2 years ago

Broatcast commented 2 years ago

When you use the compiled hlds_linux version from rehlds. The server ip address gets not set when you launch the server.

Start with hlds_linux (original):

Parameter works

+ip 123.123.123.123 +port 12345

Configfile works also

ip "123.123.123.123"
port "12345"

and gives clear result

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 20:17:52 Sep 26 2021 (2724)
STEAM Auth Server
Server IP address 123.123.123.123:12345

Server is reachable:

netstat -apn | grep hlds
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 123.123.123.123:12345     0.0.0.0:*                           29855/./hlds_linux

When i launch hlds_linux (rehlds):

Prameters get ignored, no different using + or - param. Configfiles get ignored, (configuration loaded and set but server starts without correct ip)

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 20:17:52 Sep 26 2021 (2724)
STEAM Auth Server
Server IP address 127.0.1.1:27015
...
...
...
ip
"ip" is "123.123.123.123"
port
"port" is "12345"

Server is not reachable:

netstat -apn | grep hlds
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 0.0.0.0:27015           0.0.0.0:*                           30101/./hlds_linux

(I know its should be possible now that i can connect to default port in this case (not testet) but this is not feasible for users with multible servers or firewalls)

System Informations

Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 20:17:52 Sep 26 2021 (2724)

   Metamod version 1.21p37 Copyright (c) 2001-2013 Will Day
     Patch: Metamod-P (mm-p) v37 Copyright (c) 2004-2013 Jussi Kivilinna
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

   AMX Mod X version 1.10.0.5447 Copyright (c) 2004-2015 AMX Mod X Development Team
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under
   certain conditions; type 'amxx gpl' for details.

ReGameDLL version: 5.21.0.537-dev

version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.10.0.761-dev
Build date: 20:17:52 Sep 26 2021 (2724)
Build from: https://github.com/dreamstalker/rehlds/commit/aaffe43

game version
ReGameDLL version: 5.21.0.537-dev
Build date: 20:30:24 Sep 26 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/da24c74

meta list
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.10.0.  ini   Start ANY
 [ 2] ReAPI            RUN   -    reapi_amxx_i386.  v5.20.0.  ini   ANY   Never
 [ 3] Rechecker        RUN   -    rechecker_mm_i38  v2.7      ini   Chlvl ANY
 [ 4] WHBlocker        RUN   -    whblocker_mm_i38  v1.5.697  ini   Chlvl ANY
 [ 5] MySQL            RUN   -    mysql_amxx_i386.  v1.10.0.  pl1   ANY   ANY
 [ 6] Fun              RUN   -    fun_amxx_i386.so  v1.10.0.  pl1   ANY   ANY
 [ 7] CStrike          RUN   -    cstrike_amxx_i38  v1.10.0.  pl1   ANY   ANY
 [ 8] CSX              RUN   -    csx_amxx_i386.so  v1.10.0.  pl1   ANY   ANY
8 plugins, 8 running

amxx modules
Currently loaded modules:
      name                    version     author               status
 [ 1] MySQL                   1.10.0.544  AMX Mod X Dev Team   running
 [ 2] Fun                     1.10.0.544  AMX Mod X Dev Team   running
 [ 3] CStrike                 1.10.0.544  AMX Mod X Dev Team   running
 [ 4] CSX                     1.10.0.544  AMX Mod X Dev Team   running
4 modules, 4 correct

amxx plugins
Currently loaded plugins:
       id  name                    version     author            url                              file         status
0 plugins, 0 running

so its a clean nice build

System

Debian 10.10
Linux hlds 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
compiled with gcc