mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add GetListenAddress in ClusterProvider
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
746113d584
commit
fbcdca7ebc
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue