From f96b3071e6d271ca47b1cacef47436ec6b48466e Mon Sep 17 00:00:00 2001 From: tanfarming Date: Wed, 22 Nov 2023 12:06:08 -0500 Subject: [PATCH] word --- lib/ret_web/controllers/page_controller.ex | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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")