Skip to content

Do not consider port 0 as a missing info - #181

Merged
keepsimple1 merged 1 commit into
keepsimple1:mainfrom
hrzlgnm:fix-port-0-not-being-resolved
Mar 17, 2024
Merged

keepsimple1 merged 1 commit into
keepsimple1:mainfrom
hrzlgnm:fix-port-0-not-being-resolved

Conversation

@hrzlgnm

@hrzlgnm hrzlgnm commented Mar 17, 2024 •

Copy link
Copy Markdown
Contributor

I was playing around with the library and comparing results with avahi-browse and zeroconf from python.
I found a service type _device-info._tcp.local. which does announce a port 0. It's used by the Linux samba implantation to announce some additional information for Mac-OS based computers, but without an actual port, by setting the port to 0.

So the _device-info.tcp.local. is never resolved for me using mdns-sd.
This change should fix the issue.

I really like using this library. ❤️

If you need more information regarding this PR, please let me know.

@hrzlgnm

hrzlgnm commented Mar 17, 2024

Copy link
Copy Markdown
Contributor Author

Manually tested the change using my fork intead of the 0.10.4 crate with the fix included, and _device-info._tcp.local. got resolved correctly

@keepsimple1 keepsimple1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! LGTM

@keepsimple1
keepsimple1 merged commit ed1541f into keepsimple1:main Mar 17, 2024
@hrzlgnm
hrzlgnm deleted the fix-port-0-not-being-resolved branch March 17, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants