diff --git a/model/config.go b/model/config.go index 5759e10..1efe3f3 100644 --- a/model/config.go +++ b/model/config.go @@ -89,6 +89,9 @@ func (c *Config) Read(path string) error { if c.AvgPingCount == 0 { c.AvgPingCount = 2 } + if c.Cover == 0 { + c.Cover = 1 + } if c.JWTSecretKey == "" { c.JWTSecretKey, err = utils.GenerateRandomString(1024) if err != nil {