From bbaf3f05ff364283647ff6a389b2542508a955c6 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 7 Oct 2018 20:05:28 +0200 Subject: [PATCH] fix tcp_dns.js checking for SRV lookup --- src/client/tcp_dns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/tcp_dns.js b/src/client/tcp_dns.js index 0ae3bbe..e3d40bd 100644 --- a/src/client/tcp_dns.js +++ b/src/client/tcp_dns.js @@ -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 {