Skip to content

Commit be5496a

Browse files
authored
Update index.php
1 parent 02befd1 commit be5496a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/php/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,13 +633,14 @@ function get_client_address() {
633633
if (!$is_httpproxy) {
634634
$relay_allow_methods = explode(',', strtoupper(RELAY_ALLOW_METHODS));
635635
if (in_array($_SERVER['REQUEST_METHOD'], $relay_allow_methods)) {
636+
$url = RELAY_PROXY_PASS . $_SERVER['REQUEST_URI'];
636637
$result = relay_fetch_url(array(
637-
"url" => RELAY_PROXY_PASS . $_SERVER['REQUEST_URI']
638+
"url" => $url
638639
));
639640
if ($result['success']) {
640641
exit($result['result']['data']);
641642
} else {
642-
exit(RELAY_PROXY_PASS . " is down.");
643+
exit($url . " is down.");
643644
}
644645
} else {
645646
exit("Not allowed method");

0 commit comments

Comments
 (0)