[
https://issues.apache.org/jira/browse/NET-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501914#comment-13501914
]
Viktor Hedefalk commented on NET-405:
-------------------------------------
I just struck this problem when on a IPv6 network. My use case is similar ti
Mickaƫl's - I have a config on my webapp declaring an IP-range considered the
"home net" from where you are allowed to log in. The way I use it, I got a
runtime when client has v6 address:
{code}
Message: java.lang.IllegalArgumentException: Could not parse [0:0:0:0:0:0:0:1%0]
org.apache.commons.net.util.SubnetUtils.toInteger(SubnetUtils.java:229)
org.apache.commons.net.util.SubnetUtils.access$400(SubnetUtils.java:28)
org.apache.commons.net.util.SubnetUtils$SubnetInfo.isInRange(SubnetUtils.java:116)
{code}
I will probably just catch this and say "user is NOT in range" since the range
is v4 anyways, but it would be nice to allow v6 in the future.
> Support for IPv6 in SubnetUtils
> -------------------------------
>
> Key: NET-405
> URL: https://issues.apache.org/jira/browse/NET-405
> Project: Commons Net
> Issue Type: Improvement
> Reporter: Marc Lefrancois
>
> Currently, we cannot use org.apache.commons.net.util.SubnetUtils with IPv6
> addresses. This class will become less and less useful as more internet
> device are only assigned IPv6 addresses since all available IPv4 address
> blocks have now been attributed.
> http://en.wikipedia.org/wiki/IPv4_address_exhaustion
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira