@libp2p/kad-dht 12.0.2 → 12.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,7 +45,7 @@ const node = await createLibp2p({
45
45
  services: {
46
46
  aminoDHT: kadDHT({
47
47
  protocol: '/ipfs/kad/1.0.0',
48
- addressFilter: removePrivateAddressesMapper
48
+ peerInfoMapper: removePrivateAddressesMapper
49
49
  })
50
50
  }
51
51
  })
@@ -71,7 +71,7 @@ const node = await createLibp2p({
71
71
  services: {
72
72
  lanDHT: kadDHT({
73
73
  protocol: '/ipfs/lan/kad/1.0.0',
74
- addressFilter: removePublicAddressesMapper,
74
+ peerInfoMapper: removePublicAddressesMapper,
75
75
  clientMode: false
76
76
  })
77
77
  }