Explorar o código

fixed telnet port sd2dserver

Daniel Gibbs %!s(int64=11) %!d(string=hai) anos
pai
achega
9d0188c82a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/fn_details_config

+ 1 - 1
functions/fn_details_config

@@ -466,7 +466,7 @@ elif [ "${engine}" == "unity3d" ]; then
 
 	# telnet port
 	if [ -f "${servercfgfullpath}" ]; then
-		telnetport=$(grep "ControlPanelPort" "${servercfgfullpath}"|tr -cd [:digit:])
+		telnetport=$(grep "TelnetPort" "${servercfgfullpath}"|tr -cd [:digit:])
 	fi
 	if [ ! -n "${telnetport}" ]; then
 		telnetport="0"