v1.10.0 #471

Merged
LukeGus merged 106 commits from dev-1.10.0 into main 2026-01-01 04:20:12 +00:00
2 changed files with 1 additions and 16 deletions
Showing only changes of commit 0ebf5a2529 - Show all commits

View File

@@ -22,6 +22,7 @@ interface SSHSession {
const activeSessions = new Map<string, SSHSession>();
const wss = new WebSocketServer({
host: "0.0.0.0",
port: 30008,
verifyClient: async (info) => {
try {
@@ -29,9 +30,6 @@ const wss = new WebSocketServer({
const token = url.query.token as string;
if (!token) {
dockerConsoleLogger.warn("WebSocket connection rejected: No token", {
operation: "ws_verify",
});
return false;
}
@@ -39,20 +37,11 @@ const wss = new WebSocketServer({
const decoded = await authManager.verifyJWTToken(token);
if (!decoded || !decoded.userId) {
dockerConsoleLogger.warn(
"WebSocket connection rejected: Invalid token",
{
operation: "ws_verify",
},
);
return false;
}
return true;
} catch (error) {
dockerConsoleLogger.error("WebSocket verification error", error, {
operation: "ws_verify",
});
return false;
}
},

View File

@@ -345,10 +345,6 @@ app.use(
return callback(null, true);
}
dockerLogger.warn("CORS rejected origin", {
operation: "cors_check",
origin,
});
return callback(new Error("Not allowed by CORS"));
},
credentials: true,