cmd/tools/segment-verify: use resolved ip

Change-Id: I3662aaea3ff8721c415c038b2b5324d165b60975
This commit is contained in:
Egon Elbre 2022-10-12 15:14:09 +03:00 committed by Storj Robot
parent d800b51dd9
commit dd60318147

View File

@ -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)
}