0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

Fix net_uv.isIPv4/6 bug

This commit is contained in:
Bert Belder 2011-07-05 00:03:21 +02:00
parent 7f30f13543
commit 3b16a89b3a

View File

@ -565,10 +565,10 @@ exports.isIP = function(input) {
exports.isIPv4 = function(input) {
return TCP.isIP(input) === 4;
return exports.isIP(input) === 4;
};
exports.isIPv6 = function(input) {
return TCP.isIP(input) === 6;
return exports.isIP(input) === 6;
};