fix api status endpoint

This commit is contained in:
Roman Shtylman
2017-12-11 21:29:11 -08:00
parent 5fb9dbaaa1
commit 3d6798a2bf
2 changed files with 1 additions and 5 deletions

View File

@@ -28,10 +28,6 @@ class ClientManager {
}; };
} }
stats() {
return this.stats;
}
// create a new tunnel with `id` // create a new tunnel with `id`
// if the id is already used, a random id is assigned // if the id is already used, a random id is assigned
async newClient (id) { async newClient (id) {

View File

@@ -31,7 +31,7 @@ module.exports = function(opt) {
return; return;
} }
const stats = manager.stats(); const stats = manager.stats;
ctx.body = { ctx.body = {
tunnels: stats.tunnels, tunnels: stats.tunnels,