diff --git a/tunnel-server/src/ssh/index.ts b/tunnel-server/src/ssh/index.ts index ce444046..e1e1ab25 100644 --- a/tunnel-server/src/ssh/index.ts +++ b/tunnel-server/src/ssh/index.ts @@ -29,7 +29,7 @@ export const createSshServer = ({ const onClient = (client: BaseSshClient) => { const { clientId, publicKey, envId, connectionId, publicKeyThumbprint, log } = client sshConnectionsGauge.inc({ envId }) - const cleanupClient = lodash.once(() => { sshConnectionsGauge.inc({ envId }) }) + const cleanupClient = lodash.once(() => { sshConnectionsGauge.dec({ envId }) }) const tunnels = new Map() client .on('forward', async (requestId, { path: tunnelPath, access, meta, inject }, localSocketPath, accept, reject) => {