diff --git a/contrib/registry/consul/client.go b/contrib/registry/consul/client.go index a3f84eb50..a99d812b2 100644 --- a/contrib/registry/consul/client.go +++ b/contrib/registry/consul/client.go @@ -149,6 +149,7 @@ func (c *Client) Register(_ context.Context, svc *registry.ServiceInstance, enab port, _ := strconv.ParseInt(portRaw, 10, 32) asr.Address = host asr.Port = int(port) + break } }