{"action":"opened","issue":{"url":"https://api.github.com/repos/netty/netty/issues/5054","repository_url":"https://api.github.com/repos/netty/netty","labels_url":"https://api.github.com/repos/netty/netty/issues/5054/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/5054/comments","events_url":"https://api.github.com/repos/netty/netty/issues/5054/events","html_url":"https://github.com/netty/netty/issues/5054","id":144416626,"number":5054,"title":"IpV4Subnet.contains() always returns true for single-address subnets (3.10.4)","user":{"login":"ashleymercer","id":13454082,"avatar_url":"https://avatars.githubusercontent.com/u/13454082?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleymercer","html_url":"https://github.com/ashleymercer","followers_url":"https://api.github.com/users/ashleymercer/followers","following_url":"https://api.github.com/users/ashleymercer/following{/other_user}","gists_url":"https://api.github.com/users/ashleymercer/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleymercer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleymercer/subscriptions","organizations_url":"https://api.github.com/users/ashleymercer/orgs","repos_url":"https://api.github.com/users/ashleymercer/repos","events_url":"https://api.github.com/users/ashleymercer/events{/privacy}","received_events_url":"https://api.github.com/users/ashleymercer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-29T23:19:55Z","updated_at":"2016-03-29T23:19:55Z","closed_at":null,"body":"I may have this wrong (since I'm fairly new to network programming) but my understanding is that a /32 CIDR block represents a single IP address, so I would expect an IpV4Subnet instance with this range to only match that exact IP - but, for example\r\n\r\nnew IpV4Subnet(\"1.1.1.1/32\").contains(\"10.0.16.64\")\r\n\r\nboth return true (at least in the version I tested, netty-3.10.4) The same is true for an IpV4Subnet instance constructed with mask notation (eg 1.1.1.1/255.255.255.255)."}}