From e7849b54437894a7173aef1a030763de4b95bd9b Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 20 Aug 2023 23:01:27 +0200 Subject: [PATCH] go: fix setting port from config --- app/settings/settings.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/settings/settings.go b/app/settings/settings.go index b9e7928..d124533 100644 --- a/app/settings/settings.go +++ b/app/settings/settings.go @@ -91,6 +91,8 @@ func (s *Settings) Consolidate(conf *config.Config, host *string, port *int, dev log.Debug("parsing config values") if p := conf.Port; p > 0 && p < 65536 { + s.SetPort(conf.Port) + } else { log.Warnf("port '%d', outside of bounds, setting a default of %d/tcp", p, defaultPort) s.SetPort(defaultPort) }