From be5496aa164c5ef4d4ea42ad56e032d12e2d6498 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 2 Jan 2025 21:18:07 +0900 Subject: [PATCH] Update index.php --- assets/php/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/php/index.php b/assets/php/index.php index 3073f64..d83d65f 100644 --- a/assets/php/index.php +++ b/assets/php/index.php @@ -633,13 +633,14 @@ function get_client_address() { if (!$is_httpproxy) { $relay_allow_methods = explode(',', strtoupper(RELAY_ALLOW_METHODS)); if (in_array($_SERVER['REQUEST_METHOD'], $relay_allow_methods)) { + $url = RELAY_PROXY_PASS . $_SERVER['REQUEST_URI']; $result = relay_fetch_url(array( - "url" => RELAY_PROXY_PASS . $_SERVER['REQUEST_URI'] + "url" => $url )); if ($result['success']) { exit($result['result']['data']); } else { - exit(RELAY_PROXY_PASS . " is down."); + exit($url . " is down."); } } else { exit("Not allowed method");