Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied to ::1 when not first in range #1

Open
jhogins opened this issue Aug 20, 2016 · 3 comments
Open

Access denied to ::1 when not first in range #1

jhogins opened this issue Aug 20, 2016 · 3 comments

Comments

@jhogins
Copy link

jhogins commented Aug 20, 2016

The following config results in 'Access denied to IP address: ::1'.

var ips = [['127.0.0.1', '192.168.*.*', '::1']]; //this does not work
//var ips = ['::1']; //this works
//var ips = [['::1', '127.0.0.1', '192.168.*.*']]; //this also works
app.use(ipfilter(ips, {mode:'allow'}));
@tunnckoCore
Copy link
Owner

tunnckoCore commented Aug 20, 2016

hmm, so the bug is only when it is as last item? hm, i'll review it tomorrow or if want create a pr.

thanks

@tunnckoCore
Copy link
Owner

may be caused because of ip-filter bugs. I updated it recently so we need update here too and more tests.

@tunnckoCore tunnckoCore added the bug label Oct 6, 2016
@tunnckoCore
Copy link
Owner

Wait a minute.. what's that mode: 'allow'? We don't have such thing. Anyway, you example is totally wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants