From 579c5c675cbfea5c3a453646b65c1a6db1ee1dd0 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Fri, 10 Jul 2026 08:01:52 +0800 Subject: [PATCH] Resolve tunnel source credentials (#1003) --- src/backend/ssh/tunnel.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/ssh/tunnel.ts b/src/backend/ssh/tunnel.ts index 4580ef6c..205278b0 100644 --- a/src/backend/ssh/tunnel.ts +++ b/src/backend/ssh/tunnel.ts @@ -1937,6 +1937,7 @@ app.post( } const tunnelName = tunnelConfig.name; + tunnelConfig.requestingUserId = userId; try { if (!validateTunnelConfig(tunnelName, tunnelConfig)) { @@ -1967,10 +1968,6 @@ app.post( }); return res.status(403).json({ error: "Access denied to this host" }); } - - if (accessInfo.isShared && !accessInfo.isOwner) { - tunnelConfig.requestingUserId = userId; - } } if (pendingTunnelOperations.has(tunnelName)) {