Skip to content

Commit

Permalink
bail_ip_from_jail: convert to charlist
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Dec 12, 2023
1 parent 2dcb8f5 commit bf15773
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule TransportWeb.Backoffice.RateLimiterLive do
@impl true
def handle_event("bail_ip_from_jail", %{"ip" => ip}, socket) do
# See https://github.com/xward/phoenix_ddos/blob/feb07469ce318214cddb8e88ac18b5f94b3e31f2/lib/phoenix_ddos/core/jail.ex#L36
PhoenixDDoS.Jail.bail_out(ip)
ip |> to_charlist() |> PhoenixDDoS.Jail.bail_out()
{:noreply, socket}
end

Expand Down

0 comments on commit bf15773

Please sign in to comment.