From df3209b4d60650b1c7ab56949460ab606479be18 Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Thu, 22 Sep 2016 18:43:54 -0700 Subject: [PATCH] Add GetListenAddress in ClusterProvider Signed-off-by: Jana Radhakrishnan --- daemon/cluster/cluster.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemon/cluster/cluster.go b/daemon/cluster/cluster.go index a0816316b1..f09c5ee398 100644 --- a/daemon/cluster/cluster.go +++ b/daemon/cluster/cluster.go @@ -660,6 +660,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()