change custom value name in challenge interpolation, anticipate config value in the settings map for toggling

This commit is contained in:
Thomas Lynch
2025-04-06 11:03:56 +10:00
parent e34c5b60d9
commit 70a96bf854

View File

@ -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)