Update caterpillar.js

This commit is contained in:
Namhyeon Go 2024-06-26 17:16:35 +09:00 committed by GitHub
parent 7de4e4f1be
commit d86c9728e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,12 +35,12 @@ function Caterpillar(url) {
return;
}
}
this.do = function() {
this._do = function() {
var args = arguments;
if (env.method == "relay_mysql_query") {
var query = arguments.join(' ');
rpc.call(env.method, {
rpc._call(env.method, {
"hostname": env.mysql_hostname,
"username": env.mysql_username,
"password": env.mysql_password,
@ -52,7 +52,7 @@ function Caterpillar(url) {
return;
}
rpc.call(env.method, {}, null);
rpc._call(env.method, {}, null);
}
}