-
Notifications
You must be signed in to change notification settings - Fork 17
Announce multiple transports #4
Comments
@lgierth @whyrusleeping thoughts here? |
Responses are announcing all TCP address, which is what @diasdavid Can we close this? |
@richardschneider |
It's because However, we are free to define what's in the TXT record. Currently we just add the public ID. However, we can use a key-value, which is recommended. Something like
|
Ideally put dnsaddrs in there -- |
Yes, we can do the above. But remember MDNS is used to discover an IPFS daemon over UPD. If its discovered then we should be able to use an IPv4/IPv6 TCP port to make a connection. Also, since MDNS uses UPD, the response payload should be as small as possible. KISS |
I must admit, I like the idea of changing the TXT record to contain key pairs. Even if we just change it for |
The keypairs idea is nice. |
When discovery was designed, it was assumed that an IPFS node would be announcing only one transport at a time and so, the mDNS query responses are just announcing one of the multiaddr. We need to announce all of them :) Specially cause even one transport can have several multiaddr:
https://github.com/diasdavid/node-libp2p-mdns-discovery/blob/master/src/index.js#L125-L190
The text was updated successfully, but these errors were encountered: