Interface: IInterfaceListenOptions
说明
本页由源码中的注释生成,内容为英文。
The options of IInterfaceListening.listenOnAll.
Properties
family?
optionalfamily?:"IPv4"|"IPv6"|"both"
The families listened on.
Default
ts
'both'port
port:
number
The port; 0 lets the system choose one (for one interface only).
strict?
optionalstrict?:boolean
Refuse to listen where the connections reaching the addresses of the interface through another interface cannot be refused, and stop listening while they cannot. An implementation that never refuses them throws.
Default
ts
false