mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-06 15:05:00 +00:00
Update index.php
This commit is contained in:
parent
486a399b88
commit
0a402b5201
|
@ -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"
|
||||
), "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user