cmd/tools/segment-verify: use resolved ip
Change-Id: I3662aaea3ff8721c415c038b2b5324d165b60975
This commit is contained in:
parent
d800b51dd9
commit
dd60318147
@ -140,9 +140,14 @@ func (service *Service) loadOnlineNodes(ctx context.Context) (err error) {
|
||||
continue
|
||||
}
|
||||
|
||||
addr := node.Address.Address
|
||||
if node.LastIPPort != "" {
|
||||
addr = node.LastIPPort
|
||||
}
|
||||
|
||||
service.aliasToNodeURL[alias] = storj.NodeURL{
|
||||
ID: node.ID,
|
||||
Address: node.Address.Address,
|
||||
Address: addr,
|
||||
}
|
||||
service.onlineNodes.Add(alias)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user