mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
fix: build desktop session share links on the linked server (#1350)
This commit is contained in:
1 parent
d30875483d
commit
ab43563247
11 files changed
+153
-29
No files matched your search
@@ -281,6 +281,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
|
||||
const webSocketRef = useRef<WebSocket | null>(null);
|
||||
const terminalInputDisposableRef = useRef<{ dispose(): void } | null>(null);
|
||||
const localEchoRef = useRef<TerminalLocalEcho | null>(null);
|
||||
const sessionOriginRef = useRef<"local" | "remote">("local");
|
||||
const customKeybindingsRef = useRef<CustomKeybinding[]>([]);
|
||||
const resizeTimeout = useRef<NodeJS.Timeout | null>(null);
|
||||
const wasDisconnectedBySSH = useRef(false);
|
||||
@@ -785,6 +786,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
|
||||
sessionId: sessionIdRef.current,
|
||||
protocol: "ssh" as const,
|
||||
tabInstanceId: hostConfig.instanceId,
|
||||
origin: sessionOriginRef.current,
|
||||
}
|
||||
: null,
|
||||
}),
|
||||
@@ -1642,6 +1644,7 @@ const TerminalInner = forwardRef<TerminalHandle, SSHTerminalProps>(
|
||||
"local" | "remote" | null | undefined,
|
||||
})
|
||||
: "local";
|
||||
sessionOriginRef.current = origin === "remote" ? "remote" : "local";
|
||||
const resolvedUrl = await pluginWsUrl("ssh-terminal", "/terminal", {
|
||||
origin,
|
||||
});
|
||||
|
||||
@@ -38,6 +38,7 @@ export interface TerminalSlotApi {
|
||||
sessionId: string;
|
||||
protocol: "ssh";
|
||||
tabInstanceId?: string;
|
||||
origin?: "local" | "remote";
|
||||
} | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user