Add GetListenAddress in ClusterProvider
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com> Upstream-commit: fbcdca7ebcd45d74c40fbccbb07f2d3decfb8628 Component: engine
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user