From 50d4a310c48fe13e22ec575540de0c1a2fff5d65 Mon Sep 17 00:00:00 2001 From: Jacob LeGrone Date: Tue, 16 Nov 2021 15:22:02 -0500 Subject: [PATCH] Do not override existing FrontendPort config (#15) --- internal/liteconfig/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/liteconfig/config.go b/internal/liteconfig/config.go index 561bb56b..abf833bd 100644 --- a/internal/liteconfig/config.go +++ b/internal/liteconfig/config.go @@ -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 }