DEP0118:dns.lookup() 支持虚假主机名


¥DEP0118: dns.lookup() support for a falsy host name

类型:运行时

¥Type: Runtime

由于向后兼容,以前版本的 Node.js 支持 dns.lookup() 和像 dns.lookup(false) 这样的虚假主机名。此行为未记录在案,并且被认为未在现实世界的应用中使用。它将成为 Node.js 未来版本中的一个错误。

¥Previous versions of Node.js supported dns.lookup() with a falsy host name like dns.lookup(false) due to backward compatibility. This behavior is undocumented and is thought to be unused in real world apps. It will become an error in future versions of Node.js.