fix api status endpoint

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

No files matched your search

-4
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) {
+1 -1
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,