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

Always include subtype info if exists #146

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Always include subtype info if exists #146

merged 3 commits into from
Oct 31, 2023

Conversation

keepsimple1
Copy link
Owner

@keepsimple1 keepsimple1 commented Oct 29, 2023

This is to fix issue #145 (partially it turns out ;-) )

Currently ServiceInfo only contains sub_domain info if the query targets the subtype. The sub_domain is None if it is generated for querying the parent service type.

Part of the reason is that we only store mappings from PTR to instance SRV, not the other way. Both parent type PTR and subtype PTR points to the same instance SRV. When querying the parent PTR, we wouldn't know about the subtype PTR from the instance SRV. This patch is to make the reverse lookup possible.

@keepsimple1 keepsimple1 merged commit 743f32b into main Oct 31, 2023
3 checks passed
@keepsimple1 keepsimple1 deleted the fix-subdomain branch October 31, 2023 05:09
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.

1 participant