diff --git a/daemon/cluster/cluster.go b/daemon/cluster/cluster.go index 0850e80512..70d1bfce2d 100644 --- a/daemon/cluster/cluster.go +++ b/daemon/cluster/cluster.go @@ -719,6 +719,13 @@ func (c *Cluster) GetLocalAddress() string { return c.actualLocalAddr } +// GetListenAddress returns the listen address. +func (c *Cluster) GetListenAddress() string { + c.RLock() + defer c.RUnlock() + return c.listenAddr +} + // GetAdvertiseAddress returns the remotely reachable address of this node. func (c *Cluster) GetAdvertiseAddress() string { c.RLock()