Просмотр исходного кода

fix(mhserver): add new BeaconPort for MORDHAU (#2348)

Co-authored-by: Christian Birk <chris.h3o66@gmail.com>

Joining a server will now reserve a slot in advance, fixing the issue of being booted after loading.
Server owners will have to make sure that the beacon port (15000) is reachable; it can be overridden on the command line with BeaconPort=
Christian 7 лет назад
Родитель
Сommit
eddc32c7b3

+ 2 - 1
lgsm/config-default/config-lgsm/mhserver/_default.cfg

@@ -11,13 +11,14 @@
 ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
 ip="0.0.0.0"
 port="7777"
+beaconport="15000"
 queryport="27015"
 # Maps: FFA_Camp, FFA_Contraband, FFA_Grad, FFA_MountainPeak, FFA_Taiga, FFA_ThePit, FFA_Tourney, SKM_Camp, SKM_Contraband, SKM_Grad, SKM_MountainPeak, SKM_Taiga, SKM_ThePit, SKM_Tourney, TDM_Camp, TDM_Contraband, TDM_Grad, TDM_MountainPeak, TDM_Taiga, TDM_ThePit, TDM_Tourney
 defaultmap="FFA_ThePit"
 
 ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
 fn_parms(){
-parms="Mordhau ${defaultmap} -log -MultiHome=${ip} -Port=${port} -QueryPort=${queryport}"
+parms="Mordhau ${defaultmap} -log -MultiHome=${ip} -Port=${port} -BeaconPort=${beaconport} -QueryPort=${queryport}"
 }
 
 #### LinuxGSM Settings ####

+ 1 - 0
lgsm/functions/info_messages.sh

@@ -1185,6 +1185,7 @@ fn_info_message_mordhau(){
 	{
 		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
 		echo -e "> Game\tINBOUND\t${port}\tudp"
+		echo -e "> BeaconPort\tINBOUND\t${beaconport}\tudp"
 		echo -e "> Query\tINBOUND\t${queryport}\tudp"
 	} | column -s $'\t' -t
 }

+ 1 - 0
lgsm/functions/info_parms.sh

@@ -149,6 +149,7 @@ fn_info_parms_towerunite(){
 fn_info_parms_mordhau(){
 	port=${port:-"0"}
 	queryport=${queryport:-"0"}
+	beaconport=${beaconport:-"0"}
 }
 
 fn_info_parms_unreal(){