Skip to content

Bonjour constructor options type does not match mDNS options type (missing interface field) #52

@JensEggers

Description

@JensEggers

mDNS can be bound to a specified network interface via the interface property in its Options type (see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/multicast-dns/index.d.ts#L58). This field is not present in the ServiceConfig type, and so we're not able to bind Bonjour to a particular adapter.

This could be fixed in one of two ways:

  • add an interface field to ServiceConfig (though I'm not sure this is applicable to bonjour services)
  • create a new options type for configuring Bonjour itself (ServiceConfig may not be the appropriate type, but perhaps rather mDNS:Options)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions