Fix nginx error to reflect option default.

This commit is contained in:
Brian Munro 2022-02-24 17:09:03 +02:00
parent 39e00286e3
commit a7d712f65d

View file

@ -62,7 +62,7 @@ function config.loadConfig(file)
if v == "ENABLED" then
local value = s[2]
if not has_value(valid_truefalse_values, s[2]) then
ngx.log(ngx.ERR, "unsupported value '" .. s[2] .. "' for variable '" .. v .. "'. Using default value 'ban' instead")
ngx.log(ngx.ERR, "unsupported value '" .. s[2] .. "' for variable '" .. v .. "'. Using default value 'true' instead")
break
end
end