File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1483,6 +1483,10 @@ Tests if input is an IP address. Returns `0` for invalid strings,
1483
1483
returns ` 4 ` for IP version 4 addresses, and returns ` 6 ` for IP version 6
1484
1484
addresses.
1485
1485
1486
+ ` net.isIP() ` validates conventional IP formats only. There are some
1487
+ technically permissible IP formats that it will reject. In practice, the formats
1488
+ that it rejects are not widely used except perhaps for malicious purposes.
1489
+
1486
1490
## ` net.isIPv4(input) `
1487
1491
1488
1492
<!-- YAML
@@ -1494,6 +1498,10 @@ added: v0.3.0
1494
1498
1495
1499
Returns ` true ` if input is a version 4 IP address, otherwise returns ` false ` .
1496
1500
1501
+ ` net.isIPv4() ` validates conventional IP formats only. There are some
1502
+ technically permissible IP formats that it will reject. In practice, the formats
1503
+ that it rejects are not widely used except perhaps for malicious purposes.
1504
+
1497
1505
## ` net.isIPv6(input) `
1498
1506
1499
1507
<!-- YAML
You can’t perform that action at this time.
0 commit comments