node_mdns icon indicating copy to clipboard operation
node_mdns copied to clipboard

Add underscore to allowed service type names

Open WeeJeWel opened this issue 3 years ago • 5 comments

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

WeeJeWel avatar Nov 27 '21 13:11 WeeJeWel

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?

agnat avatar Nov 28 '21 20:11 agnat

An opt-in flag seems good to me :)

WeeJeWel avatar Nov 28 '21 23:11 WeeJeWel

Hehe, yeah... that’s not going to happen. ;)

On 29. Nov 2021, at 00:05, Emile Nijssen @.***> wrote:

An opt-in flag seems good to me :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

agnat avatar Nov 29 '21 16:11 agnat

Sorry, i thought that was what you were proposing?

WeeJeWel avatar Nov 29 '21 16:11 WeeJeWel

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.

agnat avatar Nov 29 '21 16:11 agnat