Skip to content

Commit

Permalink
fix: Add port to default address (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm authored Jun 18, 2024
1 parent e9891a2 commit 74e522f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion constants/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package constants

import (
"fmt"
"os"
"strconv"
"time"
Expand Down Expand Up @@ -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))
}

0 comments on commit 74e522f

Please sign in to comment.