Skip to content

Commit

Permalink
add IO.inspect to see requeset headers values
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLab committed Mar 15, 2022
1 parent f7241ff commit 73571ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hits.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ defmodule Hits do
end

def get_user_ip_address(conn) do
IO.inspect("############ GET IP ADDRESS ##############")
IO.inspect(conn.req_headers)
IO.inspect("##########################################")
Enum.join(Tuple.to_list(conn.remote_ip), ".")
end
end

0 comments on commit 73571ea

Please sign in to comment.