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)
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: