Skip to content

Commit

Permalink
fix config default value (#538)
Browse files Browse the repository at this point in the history
* fix config & state fields

* revert state
  • Loading branch information
uubulb authored Dec 2, 2024
1 parent 07a942e commit 91a7c93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 91a7c93

Please sign in to comment.