small change

This commit is contained in:
fanyx 2021-04-09 01:32:13 +02:00
parent c9ac76e40b
commit 376377d867
2 changed files with 11 additions and 5 deletions

View File

@ -42,9 +42,14 @@ func (c *AppConfig) ReadConfig() {
}
func LoadDefaults() AppConfig {
var c AppConfig
c.Trackmania.Host = "127.0.0.1"
c.Trackmania.Port = 5000
c.Api.Port = 5111
var c = AppConfig{
Trackmania: TrackmaniaConfig{
Host: "127.0.0.1",
Port: 5000,
},
Api: ApiConfig{
Port: 5111,
},
}
return c
}

View File

@ -47,5 +47,6 @@ func (client *GbxClient) Connect(c config.AppConfig) {
log.Fatal("Protocol not GBXRemote 2")
}
log.Println("Connection established successfully!")
log.Println("Connection established!")
log.Println("Host:", c.Trackmania.Host, "- Port:", c.Trackmania.Port)
}