feat: RDP flap auto-disconnect and hide break button after reconnect (0.4.10)
Add optional auto logoff of stuck sessions on RDG flap and direct RDP failure. Hide the RDS break button on old flap 302 when the user later reconnects or the workstation session is closed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -472,6 +472,23 @@ export function updateWinAdminSettings(payload: {
|
||||
});
|
||||
}
|
||||
|
||||
export interface RdpFlapSettings {
|
||||
auto_disconnect: boolean;
|
||||
win_admin_configured: boolean;
|
||||
source: string;
|
||||
}
|
||||
|
||||
export function fetchRdpFlapSettings(): Promise<RdpFlapSettings> {
|
||||
return apiFetch<RdpFlapSettings>("/api/v1/settings/rdp-flap");
|
||||
}
|
||||
|
||||
export function updateRdpFlapSettings(payload: { auto_disconnect: boolean }): Promise<RdpFlapSettings> {
|
||||
return apiFetch<RdpFlapSettings>("/api/v1/settings/rdp-flap", {
|
||||
method: "PUT",
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
}
|
||||
|
||||
export interface HostWinRmTestResult {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user