ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
814 stars 81 forks source link

feat: support filters for resolvers #454

Closed SgtPooki closed 3 months ago

SgtPooki commented 4 months ago

https://github.com/ipfs/helia/blob/28d62f7c8f796b6c646651765c651eece182e31a/packages/ipns/src/dns-resolvers/index.ts#L1-L2

The methods exported here should accept a filter function or key so that dnsResolvers ignore non-matching domains. This will help with passing resolvers for only handshake/ens/etc and not spamming resolvers that don't support those domains

SgtPooki commented 3 months ago

this is supported now thanks to the recent changes in @multiformats/dns