diff --git a/nomad/structs/services.go b/nomad/structs/services.go index 073577b3c..63107654a 100644 --- a/nomad/structs/services.go +++ b/nomad/structs/services.go @@ -1403,7 +1403,7 @@ func (p *ConsulGatewayProxy) Copy() *ConsulGatewayProxy { } func (p *ConsulGatewayProxy) copyBindAddresses() map[string]*ConsulGatewayBindAddress { - if len(p.EnvoyGatewayBindAddresses) == 0 { + if p.EnvoyGatewayBindAddresses == nil { return nil }