fixed detect servers

This commit is contained in:
2025-02-14 00:23:26 +00:00
parent 898d9f1a08
commit 243a2de1c5

View File

@@ -160,7 +160,11 @@ func main() {
// If both server selected set the remote Gameserver to local now.
if *BothServers {
Config.BackendURL = Config.NATEscapeGameServerPort + "/"
if Config.DomainName == "" {
Config.BackendURL = "http://" + Config.NATEscapeGameServerPort + "/"
} else {
Config.BackendURL = "https://" + Config.DomainName + "/"
}
err = Config.WriteConfig()
if err != nil {
fmt.Println(err)