diff --git a/lib/ret_web/controllers/page_controller.ex b/lib/ret_web/controllers/page_controller.ex index 89c9b39bf..87fa6e0ba 100644 --- a/lib/ret_web/controllers/page_controller.ex +++ b/lib/ret_web/controllers/page_controller.ex @@ -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")