Skip to content

Commit

Permalink
contractor: resolve v2 siamux addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Nov 14, 2024
1 parent 47be760 commit 529062d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autopilot/contractor/hostset.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ func (hs *hostSet) resolveHostIP(host api.Host) []string {
// 1. not the host's faul, so we give it the benefit of the doubt
// 2. the host is unreachable of incorrectly announced, in which case the scans will fail
//
// TODO: resolve v2 addresses
resolvedAddresses, _, _ = utils.ResolveHostIP(context.Background(), host.NetAddress)
for _, addr := range host.V2SiamuxAddresses {
v2Addr, _, _ := utils.ResolveHostIP(context.Background(), addr)
resolvedAddresses = append(resolvedAddresses, v2Addr...)
}

// update cache
hs.resolvedAddresses[host.PublicKey] = resolvedAddresses
Expand Down

0 comments on commit 529062d

Please sign in to comment.