Fix for remote addr parsing
Fix initialization of starting vector Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
This commit is contained in:
parent
e188cd156b
commit
552c16dc92
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ func (c *controller) agentSetup() error {
|
|||
advAddr := clusterProvider.GetAdvertiseAddress()
|
||||
dataAddr := clusterProvider.GetDataPathAddress()
|
||||
remoteList := clusterProvider.GetRemoteAddressList()
|
||||
remoteAddrList := make([]string, len(remoteList))
|
||||
remoteAddrList := make([]string, 0, len(remoteList))
|
||||
for _, remote := range remoteList {
|
||||
addr, _, _ := net.SplitHostPort(remote)
|
||||
remoteAddrList = append(remoteAddrList, addr)
|
||||
|
|
Loading…
Add table
Reference in a new issue