Skip to content

Commit

Permalink
fix config parse
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancheng91 committed Jan 16, 2023
1 parent b59aa9a commit bd2d165
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/gost/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func (cfg *peerConfig) parse(r io.Reader) error {
cfg.Strategy = ss[1]
case "max_fails":
cfg.MaxFails, _ = strconv.Atoi(ss[1])
case "fastest_count":
cfg.FastestCount, _ = strconv.Atoi(ss[1])
case "fail_timeout":
cfg.FailTimeout, _ = time.ParseDuration(ss[1])
case "reload":
Expand Down

0 comments on commit bd2d165

Please sign in to comment.