Skip to content

Commit

Permalink
Add GetListenAddress in ClusterProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Jana Radhakrishnan <[email protected]>
  • Loading branch information
mrjana committed Sep 23, 2016
1 parent 746113d commit fbcdca7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daemon/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fbcdca7

Please sign in to comment.