Christian
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
6 additions and
6 deletions
-
lgsm/config-default/config-lgsm/colserver/_default.cfg
-
lgsm/config-default/config-lgsm/dodrserver/_default.cfg
-
lgsm/config-default/config-lgsm/stnserver/_default.cfg
-
lgsm/config-default/config-lgsm/vhserver/_default.cfg
-
lgsm/functions/info_distro.sh
|
|
@ -116,7 +116,7 @@ steamcmdforcewindows="no" |
|
|
|
branch="" |
|
|
|
betapassword="" |
|
|
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|
|
|
steammaster="false" |
|
|
|
steammaster="true" |
|
|
|
|
|
|
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|
|
|
# 1: tmux kill |
|
|
|
|
|
@ -121,7 +121,7 @@ steamcmdforcewindows="no" |
|
|
|
branch="" |
|
|
|
betapassword="" |
|
|
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|
|
|
steammaster="false" |
|
|
|
steammaster="true" |
|
|
|
|
|
|
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|
|
|
# 1: tmux kill |
|
|
|
|
|
@ -119,7 +119,7 @@ steamcmdforcewindows="no" |
|
|
|
branch="" |
|
|
|
betapassword="" |
|
|
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|
|
|
steammaster="false" |
|
|
|
steammaster="true" |
|
|
|
|
|
|
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|
|
|
# 1: tmux kill |
|
|
|
|
|
@ -124,7 +124,7 @@ steamcmdforcewindows="no" |
|
|
|
branch="" |
|
|
|
betapassword="" |
|
|
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|
|
|
steammaster="false" |
|
|
|
steammaster="true" |
|
|
|
|
|
|
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
|
|
|
# 1: tmux kill |
|
|
|
|
|
@ -291,11 +291,11 @@ if [ -z "${displaymasterserver}" ]; then |
|
|
|
if [ "${steammaster}" == "true" ]||[ "${commandname}" == "DEV-QUERY-RAW" ]; then |
|
|
|
# Will query server IP addresses first. |
|
|
|
for queryip in "${queryips[@]}"; do |
|
|
|
masterserver="$(curl --connect-timeout 10 -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${queryip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)" |
|
|
|
masterserver="$(curl --connect-timeout 10 -m 3 -s "https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=${queryip}&format=json" | jq --arg port "${port}" --arg queryport "${queryport}" '.response.servers[] | select((.gameport == ($port|tonumber) or (.gameport == ($queryport|tonumber)))) | .addr' | wc -l 2>/dev/null)" |
|
|
|
done |
|
|
|
# Should that not work it will try the external IP. |
|
|
|
if [ "${masterserver}" == "0" ]; then |
|
|
|
masterserver="$(curl --connect-timeout 10 -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${extip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)" |
|
|
|
masterserver="$(curl --connect-timeout 10 -m 3 -s "https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=${extip}&format=json" | jq --arg port "${port}" --arg queryport "${queryport}" '.response.servers[] | select((.gameport == ($port|tonumber) or (.gameport == ($queryport|tonumber)))) | .addr' | wc -l 2>/dev/null)" |
|
|
|
fi |
|
|
|
if [ "${masterserver}" == "0" ]; then |
|
|
|
displaymasterserver="false" |
|
|
|