Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not consider port 0 as a missing info #181

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Do not consider port 0 as a missing info #181

merged 1 commit into from
Mar 17, 2024

Conversation

hrzlgnm
Copy link
Contributor

@hrzlgnm hrzlgnm commented Mar 17, 2024

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
Copy link
Contributor Author

hrzlgnm commented Mar 17, 2024

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

Copy link
Owner

@keepsimple1 keepsimple1 left a comment

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
3 checks passed
@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