net.getDefaultAutoSelectFamily()


获取 socket.connect(options)autoSelectFamily 选项的当前默认值。初始默认值为 true,除非提供了命令行选项 --no-network-family-autoselection

¥Gets the current default value of the autoSelectFamily option of socket.connect(options). The initial default value is true, unless the command line option --no-network-family-autoselection is provided.

  • 返回:<boolean> autoSelectFamily 选项的当前默认值。

    ¥Returns: <boolean> The current default value of the autoSelectFamily option.