From e2841fd99f41902e4f816334fa87a985f14202c4 Mon Sep 17 00:00:00 2001 From: Andrew Howden Date: Wed, 10 Apr 2024 17:48:28 +0200 Subject: [PATCH] Reintroduce listen address configuration Currently, the application is not allowing the listen address to be set. This means that deployments to cloud are failing, as there's nothing to send traffic to. --- server/wire.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/wire.go b/server/wire.go index 46aec2b..277330e 100644 --- a/server/wire.go +++ b/server/wire.go @@ -28,6 +28,10 @@ func ResolveOptions() ([]Option, error) { opts = append(opts, WithStorage(storage)) + if addr := cfg.ServerListenAddress.Value(); addr != "" { + opts = append(opts, WithListenAddress(addr)) + } + if cfg.ServerH2CEnabled.Value() { opts = append(opts, WithH2C()) }