Closed LePresidente closed 2 years ago
I see this is fixed in 0.1.1, is it safe to use?
You can fix this in current versionl by using sed-patch 's|ok, err = require "crowdsec".allowIp(ngx.var.remote_addr)|local ok, err = require "crowdsec".allowIp(ngx.var.remote_addr)|' /PATH/TO/nginx/lualib/plugins/crowdsec/access.lua
Every request causes the following log line
writing a global Lua variable ('err') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables and a stacktrace