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:
parent
7f30f13543
commit
3b16a89b3a
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user