Update index.php

This commit is contained in:
Namhyeon Go 2024-04-05 17:58:16 +09:00 committed by GitHub
parent 486a399b88
commit 0a402b5201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,6 +446,16 @@ if ($context['jsonrpc'] == "2.0") {
case "get_client_address":
echo jsonrpc2_result_encode(get_client_address(), $context['id']);
break;
}
}
default:
echo jsonrpc2_error_encode(array(
"status" => 403,
"message" => "Unsupported method"
), $context['id']);
}
} else {
echo jsonrpc2_error_encode(array(
"status" => 403,
"message" => "Unsupported format"
), "");
}