diff --git a/handlers.go b/handlers.go index ada7338a..1a4603be 100644 --- a/handlers.go +++ b/handlers.go @@ -359,7 +359,7 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M continue } - dht.providerStore.AddProvider(ctx, key, peer.AddrInfo{ID: p}) + dht.providerStore.AddProvider(ctx, key, peer.AddrInfo{ID: pi.ID, Addrs: pi.Addrs}) } return nil, nil