Skip to content

Commit

Permalink
fix(server): save default values when initializing forwards
Browse files Browse the repository at this point in the history
  • Loading branch information
wufe committed Jan 10, 2024
1 parent f040168 commit ab5b1c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/models/application-configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func NewApplicationConfiguration(configuration *ApplicationConfiguration, mutexB
default:
return nil, fmt.Errorf("application.forwards[%d].protocol is not valid: supported protocols are TCP, UDP and HTTP", i)
}

configuration.Forwards[i] = forward
}
if configuration.Fetch.Interval <= 0 {
configuration.Fetch.Interval = 60
Expand Down

0 comments on commit ab5b1c9

Please sign in to comment.