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 { func LoadDefaults() AppConfig {
var c AppConfig var c = AppConfig{
c.Trackmania.Host = "127.0.0.1" Trackmania: TrackmaniaConfig{
c.Trackmania.Port = 5000 Host: "127.0.0.1",
c.Api.Port = 5111 Port: 5000,
},
Api: ApiConfig{
Port: 5111,
},
}
return c return c
} }

View File

@ -47,5 +47,6 @@ func (client *GbxClient) Connect(c config.AppConfig) {
log.Fatal("Protocol not GBXRemote 2") 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)
} }