From 74e522f4003f5ff0b51d530ac63142d5f820a9c3 Mon Sep 17 00:00:00 2001 From: Tim Holm Date: Tue, 18 Jun 2024 15:07:23 +1000 Subject: [PATCH] fix: Add port to default address (#82) --- constants/env.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constants/env.go b/constants/env.go index f03047f..65ed70f 100644 --- a/constants/env.go +++ b/constants/env.go @@ -15,6 +15,7 @@ package constants import ( + "fmt" "os" "strconv" "time" @@ -45,5 +46,5 @@ func NitricDialTimeout() time.Duration { // nitricAddress - constructs the full address i.e. host:port, of the nitric service based on config or defaults func NitricAddress() string { - return GetEnvWithFallback(nitricServiceAddress, nitricServiceHostDefault) + return GetEnvWithFallback(nitricServiceAddress, fmt.Sprintf("%s:%s", nitricServiceHostDefault, nitricServicePortDefault)) }