mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
change custom value name in challenge interpolation, anticipate config value in the settings map for toggling
This commit is contained in:
@ -23,7 +23,9 @@ function _M.generate_challenge(context, salt, user_key, ddos_config, is_applet)
|
||||
ip = context.sf:src()
|
||||
end
|
||||
|
||||
local custom_value = context:get_var("txn.fp_custom") or ""
|
||||
-- if ddos_config["fp"] == true then
|
||||
local custom_value = context:get_var("txn.fp_custom2") or ""
|
||||
-- end
|
||||
|
||||
-- user agent to counter very dumb spammers
|
||||
local user_agent = _M.get_header_from_context(context, "user-agent", is_applet)
|
||||
|
Reference in New Issue
Block a user