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

removed strict hostname validator for Question::setName #118

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

tomschlick
Copy link
Contributor

Instead just validate the domain name is valid. This allows us to use domains like _sip._tcp.example.com in Questions which would otherwise fail because of the Question::setName()'s reliance on the validator.

This is useful when constructing a question to later pass to an actual DNS query via the toWire() method on the message.

Reference to a similar case with resource records: af12eb9

Instead just validate the domain name is valid. This allows us to use domains like `_sip._tcp.example.com` in Questions which would otherwise fail because of the Question::setName()'s reliance on the validator.

Reference to a similar case with resource records: Badcow@af12eb9

validate Question::setName to allow for special characters
@samuelwilliams samuelwilliams merged commit 75a504e into Badcow:master Aug 6, 2024
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