From 1358d8091f97dcb40c8fd36bfdd3e90ad2d5022c Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 27 Jun 2021 21:41:11 +0100 Subject: [PATCH] ut99 beacon --- lgsm/functions/info_config.sh | 2 ++ lgsm/functions/info_messages.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index e7ddc62fb..ffa1f7fa9 100755 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -1060,6 +1060,7 @@ fn_info_config_unreal(){ port=$(grep "Port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' | grep "^Port" | grep -v "#" | tr -cd '[:digit:]') queryport=$((port + 1)) queryportgs=$(grep "OldQueryPortNumber" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') + beaconport=$(grep "ServerBeaconPort" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') webadminenabled=$(grep "bEnabled" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') webadminport=$(grep "ListenPort" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') webadminuser=$(grep "AdminUsername" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminUsername//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//'| sed 's/\r$//') @@ -1070,6 +1071,7 @@ fn_info_config_unreal(){ adminpassword=${adminpassword:-"NOT SET"} port=${port:-"0"} queryport=${queryport:-"0"} + beaconport=${beaconport:-"8777"} queryportgs=${queryportgs:-"0"} webadminenabled=${webadminenabled:-"NOT SET"} webadminport=${webadminport:-"0"} diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 0f3ea0fc1..354d6de2d 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -1299,7 +1299,7 @@ fn_info_message_unreal(){ fn_port "header" fn_port "Game" port udp fn_port "Query" queryport udp - fn_port "Beacon" beaconport udp + fn_port "LAN Beacon" beaconport udp fn_port "HTTP" httpport tcp } | column -s $'\t' -t echo -e ""