Interface MDNSServerOptions

Defines the options passed to the underlying mdns server.

interface MDNSServerOptions {
    disableIpv6?: boolean;
    interface?: string | string[];
}

Properties

disableIpv6?: boolean

If specified, the mdns server will not include any ipv6 address records and not bind any udp6 sockets. This is handy if you want to "bind" on 0.0.0.0 only.

interface?: string | string[]

If specified, the mdns server will only listen on the specified interfaces (allowlist). It can be supplied as a string (representing a single interface) or as an array of strings to define multiple interfaces. The interface can be defined by specifying the interface name (like 'en0') or by specifying an ip address.