|
|
@ -1185,7 +1185,6 @@ fn_info_config_ro(){ |
|
|
|
adminpassword="${unavailable}" |
|
|
|
port="${zero}" |
|
|
|
queryport="${zero}" |
|
|
|
queryportgs="${zero}" |
|
|
|
steamport="${zero}" |
|
|
|
steammasterport="${zero}" |
|
|
|
lanport="${zero}" |
|
|
@ -1199,9 +1198,8 @@ fn_info_config_ro(){ |
|
|
|
adminpassword=$(sed -nr 's/^AdminPassword=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//') |
|
|
|
port=$(sed -nr 's/^Port=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]') |
|
|
|
queryport=$((port + 1)) |
|
|
|
queryportgs=$(sed -nr 's/^OldQueryPortNumber=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]') |
|
|
|
steamport="20560" |
|
|
|
steammasterport="28852" |
|
|
|
steamport="20610" |
|
|
|
steammasterport="28902" |
|
|
|
lanport=$(grep "LANServerPort=" "${servercfgfullpath}" | tr -cd '[:digit:]') |
|
|
|
httpport=$(sed -nr 's/^ListenPort=(.*)$/\1/p' "${servercfgfullpath}" | tr -cd '[:digit:]') |
|
|
|
webadminenabled=$(sed -nr 's/^bEnabled=(.*)$/\1/p' "${servercfgfullpath}" | tr -d '=\";,:' | sed 's/\r$//') |
|
|
@ -1214,7 +1212,6 @@ fn_info_config_ro(){ |
|
|
|
adminpassword=${adminpassword:-"NOT SET"} |
|
|
|
port=${port:-"0"} |
|
|
|
queryport=${queryport:-"0"} |
|
|
|
queryportgs=${queryportgs:-"0"} |
|
|
|
steamport=${steamport:-"0"} |
|
|
|
steammasterport=${steammasterport:-"0"} |
|
|
|
lanport=${lanport:-"0"} |
|
|
|