express-ipfilter
express-ipfilter copied to clipboard
Is there a way to update the list of IPs in realtime?
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
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`