mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
fix tcp_dns.js checking for SRV lookup
This commit is contained in:
parent
ed25865f21
commit
bbaf3f05ff
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue