Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Jan 2, 2025
1 parent 02befd1 commit be5496a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit be5496a

Please sign in to comment.