Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Do not override existing FrontendPort config (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone authored Nov 16, 2021
1 parent 3d927c0 commit 50d4a31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/liteconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func Convert(cfg *Config) *config.Config {
metricsPort = cfg.portProvider.mustGetFreePort()
pprofPort = cfg.portProvider.mustGetFreePort()
} else {
cfg.FrontendPort = DefaultFrontendPort
if cfg.FrontendPort == 0 {
cfg.FrontendPort = DefaultFrontendPort
}
metricsPort = cfg.FrontendPort + 200
pprofPort = cfg.FrontendPort + 201
}
Expand Down

0 comments on commit 50d4a31

Please sign in to comment.