socket.autoSelectFamilyAttemptedAddresses


  • 字符串[]

只有在 socket.connect(options) 中启用了系列自动选择算法时,此属性才会出现,它是一个已尝试地址的数组。

【This property is only present if the family autoselection algorithm is enabled in socket.connect(options) and it is an array of the addresses that have been attempted.】

每个地址都是 $IP:$PORT 形式的字符串。如果连接成功,那么最后一个地址就是套接字当前连接的地址。

【Each address is a string in the form of $IP:$PORT. If the connection was successful, then the last address is the one that the socket is currently connected to.】