diff --git a/client/config.go b/client/config.go index fc70331..3dffe91 100644 --- a/client/config.go +++ b/client/config.go @@ -71,6 +71,15 @@ func (c *Config) Load(filename string) error { if err != nil { return err } + // override values if not set or wrong + if c.HttpTimeOut <= 0 { + c.HttpTimeOut = 10 + c.Save(filename) + } + if c.HttpLongPoll <= 1 { + c.HttpLongPoll = 300 + c.Save(filename) + } return nil }