Skip to content

Conversation

@WeeJeWel
Copy link

@WeeJeWel WeeJeWel commented Nov 27, 2021

Some services have an _ in their service. This PR allows for those kinds of services.

@agnat
Copy link
Owner

agnat commented Nov 28, 2021

Thanks for looking into this.

Some services have an _ in their service.

Yet they shouldn't. From http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt ...

   As defined the rules for service names [RFC 6335], Application
   Protocol Names may be no more than fifteen characters (not counting
   the mandatory underscore), consisting of only letters, digits, and
   hyphens, must begin and end with a letter or digit, must not contain
   consecutive hyphens, and must contain at least one letter.

node_mdns does not implement the full rule set, but the character set seems correct. How about adding an option to disable or override the check?

@WeeJeWel
Copy link
Author

An opt-in flag seems good to me :)

@agnat
Copy link
Owner

agnat commented Nov 29, 2021 via email

@WeeJeWel
Copy link
Author

Sorry, i thought that was what you were proposing?

@agnat
Copy link
Owner

agnat commented Nov 29, 2021

Ah, so sorry... I thought you meant an opt-in for the conformance check. But you meant an opt-in for underscores.

Yes, that'll work.

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.

3 participants