small change
This commit is contained in:
parent
c9ac76e40b
commit
376377d867
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue