事件:'lookup'
¥Event: 'lookup'
在解析主机名之后但在连接之前触发。不适用于 Unix 套接字。
¥Emitted after resolving the host name but before connecting. Not applicable to Unix sockets.
-
err<Error> | <null> 错误对象。参见dns.lookup()。¥
err<Error> | <null> The error object. Seedns.lookup(). -
address<string> IP 地址。¥
address<string> The IP address. -
family<number> | <null> 地址类型。参见dns.lookup()。¥
family<number> | <null> The address type. Seedns.lookup(). -
host<string> 主机名。¥
host<string> The host name.