{"action":"reopened","issue":{"url":"https://api.github.com/repos/baminteractive/express-ipfilter/issues/22","repository_url":"https://api.github.com/repos/baminteractive/express-ipfilter","labels_url":"https://api.github.com/repos/baminteractive/express-ipfilter/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/baminteractive/express-ipfilter/issues/22/comments","events_url":"https://api.github.com/repos/baminteractive/express-ipfilter/issues/22/events","html_url":"https://github.com/baminteractive/express-ipfilter/issues/22","id":141196198,"number":22,"title":"IPv6 locally but IPv4 when hosted","user":{"login":"mifriis","id":1443594,"avatar_url":"https://avatars.githubusercontent.com/u/1443594?v=3","gravatar_id":"","url":"https://api.github.com/users/mifriis","html_url":"https://github.com/mifriis","followers_url":"https://api.github.com/users/mifriis/followers","following_url":"https://api.github.com/users/mifriis/following{/other_user}","gists_url":"https://api.github.com/users/mifriis/gists{/gist_id}","starred_url":"https://api.github.com/users/mifriis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mifriis/subscriptions","organizations_url":"https://api.github.com/users/mifriis/orgs","repos_url":"https://api.github.com/users/mifriis/repos","events_url":"https://api.github.com/users/mifriis/events{/privacy}","received_events_url":"https://api.github.com/users/mifriis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T07:28:53Z","updated_at":"2016-03-29T14:49:28Z","closed_at":null,"body":"Node seems to favour IPv6 where availiable. So locally my IP is detected as \"::1\".\r\n\r\nSetting up the whilist as: var ips = ['127.0.0.1', '::1']; work exactly as advertised and i am allowed in.\r\n\r\nHowever, when hosted the IP's are IPv4 and i need to CIDR aswell. I have tried the following:\r\n\r\nvar ips = ['127.0.0.1/32', '::1/32', '170.20.68.68/32', '170.20.70.30/32'];\r\nvar ips = ['127.0.0.1', '::1', '170.20.68.68/32', '170.20.70.30/32'];\r\n\r\nBoth result in this message sent to the browser: Invalid net address: ::1\r\nIt's not a node error, everything appears to work fine behind the screen.\r\n\r\nIt seems the CIDR filter doesn't work with IPv6, or the combination of IPv6 and 4 along with CIDR is malfunctioning.\r\n\r\nCan you advice?"}}