libp2p / js-libp2p-mdns

libp2p MulticastDNS Peer Discovery
https://libp2p.io
Other
51 stars 17 forks source link

TXT data #65

Closed richardschneider closed 6 years ago

richardschneider commented 6 years ago

The sent TXT RDATA response (see RFC 1035 section 3.3.14) is malformed. The TXT-DATA should be an array of <character-string>, NOT just a string.

Each <character-string> has a length prefixed byte followed by the UTF-8 string. The array is terminated with a NUL byte.

richardschneider commented 6 years ago

See Issue https://github.com/mafintosh/dns-packet/issues/25

richardschneider commented 6 years ago

Did some packet tracing with wireshark and it reports the query response is malformed.

malformed

richardschneider commented 6 years ago

This will be fixed in the next release of dns-packet and multicast-dns.