mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-26 12:41:03 -04:00
fix tcp_dns.js checking for SRV lookup
This commit is contained in:
parent
ed25865f21
commit
bbaf3f05ff
@ -22,7 +22,7 @@ module.exports = function (client, options) {
|
||||
// Error resolving domain
|
||||
if (err) {
|
||||
// Could not resolve SRV lookup, connect directly
|
||||
if (err.code === 'ENODATA') {
|
||||
if (err.code === 'ENODATA' || err.code === 'ENOTFOUND') {
|
||||
client.setSocket(net.connect(options.port, options.host))
|
||||
return
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user