Resolve tunnel source credentials (#1003)

This commit is contained in:
ZacharyZcR
2026-07-10 08:01:52 +08:00
committed by GitHub
parent d908d9dc57
commit 579c5c675c
+1 -4
View File
@@ -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)) {