fixed detect servers
This commit is contained in:
6
main.go
6
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user