Created
December 30, 2014 02:54
-
-
Save andretw/90cb423c24b0e094676f to your computer and use it in GitHub Desktop.
Check if the IP is IPv6 or not. (Using uri.js)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isIpv6 = (ip) -> | |
uri = new URI("http://#{ip}") | |
result = uri.is("ipv6") | |
$log.debug "check ip #{ip} is ipv6 or not: #{result}" | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment