Преглед на файлове

Add GetListenAddress in ClusterProvider

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
Jana Radhakrishnan преди 8 години
родител
ревизия
fbcdca7ebc
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      daemon/cluster/cluster.go

+ 7 - 0
daemon/cluster/cluster.go

@@ -719,6 +719,13 @@ func (c *Cluster) GetLocalAddress() string {
 	return c.actualLocalAddr
 	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.
 // GetAdvertiseAddress returns the remotely reachable address of this node.
 func (c *Cluster) GetAdvertiseAddress() string {
 func (c *Cluster) GetAdvertiseAddress() string {
 	c.RLock()
 	c.RLock()