Explorar o código

Update _default.cfg

-hostname="${servername}" should be -hostname='${servername}'
When applying the wrong quotes, spaces are not detected and the server name will be cut off after the first space and showing incorrectly in the server browser.
WatskeBart %!s(int64=7) %!d(string=hai) anos
pai
achega
7c6d37e2d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lgsm/config-default/config-lgsm/inssserver/_default.cfg

+ 1 - 1
lgsm/config-default/config-lgsm/inssserver/_default.cfg

@@ -23,7 +23,7 @@ maxplayers="28"
 fn_parms(){
 	# Allows serverpassword to work with parameters
 	if [ "${serverpassword}" != "NOT SET" ]; then
-		parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname="${servername}" -log"
+		parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname='${servername}' -log"
 	else
 		parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname='${servername}' -log"
 	fi