Skip to content

Commit

Permalink
79305 Fix tunnel crash on start when config has incomplete data (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemirk committed Jun 8, 2023
1 parent 1ce54d8 commit 9ec32dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/settings/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (s *Config) GetUpdateStatisticsInterval() human.Interval {

func (s *Config) GetSentEventInterval() human.Interval {
if s == nil || s.PeerStatistics == nil {
human.MustParseInterval(DefaultTrafficChangeSendEventInterval)
return human.MustParseInterval(DefaultTrafficChangeSendEventInterval)
}
return s.PeerStatistics.TrafficChangeSendEventInterval
}
Expand Down

0 comments on commit 9ec32dc

Please sign in to comment.