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

Is there a way to update the list of IPs in realtime? #106

Open
alexbudin opened this issue Aug 31, 2022 · 1 comment
Open

Is there a way to update the list of IPs in realtime? #106

alexbudin opened this issue Aug 31, 2022 · 1 comment

Comments

@alexbudin
Copy link

I want to add new IPs on the list. Will they be filtered once they are added in the list? or a server restart is necessary?

Thank you,

Alex

@smit-luvani
Copy link

You can pass a function that can fetch the latest desired IP list.

`const ips = function() {
return ['127.0.0.1']
}

// Create the server
app.use(ipfilter(ips, { mode: 'allow' }))

module.exports = app`

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