You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should this not validate each block so that V4 blocks > 255 would case the function to return false? Also, since V4 and V6 addresses have different delimiters (colons/periods) that passing a V4 address into the isV6Format function should return false as well?
Would it be possible to add a validation method that accepts both V4 and V6 addresses and validates them?
The text was updated successfully, but these errors were encountered:
Hi,
The methods
ip.isV4Format()
andip.isV6Format()
are returningtrue
for an invalid IP address:Should this not validate each block so that V4 blocks > 255 would case the function to return
false
? Also, since V4 and V6 addresses have different delimiters (colons/periods) that passing a V4 address into theisV6Format
function should return false as well?Would it be possible to add a validation method that accepts both V4 and V6 addresses and validates them?
The text was updated successfully, but these errors were encountered: