From 3e01340eed22bacc156992da6279fd28f54fc29c Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 2 Aug 2013 12:07:03 +0100 Subject: [PATCH] getConnectionFamily() IP address fix --- server/irc/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/irc/connection.js b/server/irc/connection.js index d8bf804..37aa134 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -419,9 +419,9 @@ IrcConnection.prototype.setEncoding = function (encoding) { function getConnectionFamily(host, callback) { if (net.isIP(host)) { if (net.isIPv4(host)) { - setImmediate(callback, null, 'IPv4', host); + callback(null, 'IPv4', host); } else { - setImmediate(callback, null, 'IPv6', host); + callback(null, 'IPv6', host); } } else { dns.resolve6(host, function resolve6Cb(err, addresses) { -- 2.25.1