feat: 添加通知功能自定义telegram域名功能
This commit is contained in:
@@ -16,7 +16,7 @@ export function handleRdpProxyConnection(
|
||||
const rdpWidthStr = (request as any).rdpWidth; // Get as string first
|
||||
const rdpHeightStr = (request as any).rdpHeight; // Get as string first
|
||||
|
||||
// --- 新增:参数验证和 DPI 计算 ---
|
||||
// --- 参数验证和 DPI 计算 ---
|
||||
if (!rdpToken || !rdpWidthStr || !rdpHeightStr) { // Check string presence
|
||||
console.error(`WebSocket: RDP Proxy connection for ${ws.username} missing required parameters (token, width, height).`);
|
||||
ws.send(JSON.stringify({ type: 'rdp:error', payload: 'Missing RDP connection parameters (token, width, height).' }));
|
||||
|
||||
@@ -20,10 +20,10 @@ export interface ClientState { // 导出以便 Service 可以导入
|
||||
statusIntervalId?: NodeJS.Timeout; // 添加状态轮询 ID (由 StatusMonitorService 管理)
|
||||
dockerStatusIntervalId?: NodeJS.Timeout; // NEW: Docker 状态轮询 ID
|
||||
ipAddress?: string; // 添加 IP 地址字段
|
||||
isShellReady?: boolean; // 新增:标记 Shell 是否已准备好处理输入和调整大小
|
||||
isSuspendedByService?: boolean; // 新增:标记此会话是否已被 SshSuspendService 接管
|
||||
isMarkedForSuspend?: boolean; // 新增:标记此会话是否已被用户请求挂起(等待断开连接)
|
||||
suspendLogPath?: string; // 新增:如果标记挂起,则存储日志路径 (基于原始 sessionId)
|
||||
isShellReady?: boolean; // 标记 Shell 是否已准备好处理输入和调整大小
|
||||
isSuspendedByService?: boolean; // 标记此会话是否已被 SshSuspendService 接管
|
||||
isMarkedForSuspend?: boolean; // 标记此会话是否已被用户请求挂起(等待断开连接)
|
||||
suspendLogPath?: string; // 如果标记挂起,则存储日志路径 (基于原始 sessionId)
|
||||
// suspendLogWritableStream?: NodeJS.WritableStream; // 移除,将直接使用 temporaryLogStorageService.writeToLog
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user