Skip to content

Commit

Permalink
Feat: Add status message for GeoIP policy violations
Browse files Browse the repository at this point in the history
Previously, policy violations in the GeoIP filter were logged without any user notification. This commit adds a status message to inform users when a policy violation occurs, improving transparency and user awareness.

Signed-off-by: Christian Roessner <c@roessner.co>
  • Loading branch information
Christian Roessner committed Sep 19, 2024
1 parent a0410c6 commit face464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/lua-plugins.d/filters/geoip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ function nauthilus_call_filter(request)
nauthilus_context.context_set("rt", rt)
end

nauthilus_builtin.status_message_set("Policy violation")

return nauthilus_builtin.FILTER_REJECT, nauthilus_builtin.FILTER_RESULT_OK
end
else
Expand Down

0 comments on commit face464

Please sign in to comment.