Add GetListenAddress in ClusterProvider
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
0ce34bdb12
commit
df3209b4d6
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue