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