projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f0f1b
)
getConnectionFamily() IP address fix
author
Darren
<darren@darrenwhitlen.com>
Fri, 2 Aug 2013 11:07:03 +0000
(12:07 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Fri, 2 Aug 2013 11:07:03 +0000
(12:07 +0100)
server/irc/connection.js
patch
|
blob
|
blame
|
history
diff --git
a/server/irc/connection.js
b/server/irc/connection.js
index d8bf8048f708464fb155b524ab8d41e1bfb9f84f..37aa13433ac107a2725c2e67d15e07628fc575a3 100644
(file)
--- 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) {