mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 21:45:54 +00:00
add /api/tunnels/:id/status endpoint
Provides connected_sockets information for a tunnel.
This commit is contained in:
@@ -39,6 +39,12 @@ class TunnelAgent extends Agent {
|
||||
this.closed = false;
|
||||
}
|
||||
|
||||
stats() {
|
||||
return {
|
||||
connectedSockets: this.connectedSockets,
|
||||
};
|
||||
}
|
||||
|
||||
listen() {
|
||||
const server = this.server;
|
||||
if (this.started) {
|
||||
|
||||
Reference in New Issue
Block a user