mjansson / mdns

Public domain mDNS/DNS-SD library in C
The Unlicense
459 stars 120 forks source link

parse boolean txt records (keys without value) correctly #63

Closed ChristianHillenbrand closed 2 years ago

ChristianHillenbrand commented 2 years ago

Hey :) While playing around with your mdns library i noticed that txt records containing no values weren't parsed correctly. The problem is that they are discarded if no separator ('=') has been found yet, though the entry is completely reasonable. I provided a small fix for this issue and it would be great if you merge it into the main branch :) Have a great weekend!

ChristianHillenbrand commented 2 years ago

Allright I implemented the modifications as you suggested ;-)