Skip to content

Commit

Permalink
word
Browse files Browse the repository at this point in the history
  • Loading branch information
tanfarming committed Nov 22, 2023
1 parent 8a399ff commit f96b307
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/ret_web/controllers/page_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,8 @@ defmodule RetWeb.PageController do
resolved_ip = HttpUtils.resolve_ip(host)

IO.inspect(resolved_ip)
IO.inspect(System.get_env("TURKEY_MODE"))
IO.inspect(cors_host)
IO.inspect(conn.host)
IO.inspect(cors_scheme)
IO.inspect(get_req_header(conn, "x-forwarded-proto"))
IO.inspect(HttpUtils.internal_ip?(resolved_ip))


if HttpUtils.internal_ip?(resolved_ip) do
conn |> send_resp(401, "Bad request")
Expand Down

0 comments on commit f96b307

Please sign in to comment.