mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 21:03:47 +00:00
Merge pull request #762 from ZacharyZcR/fix/rdp-ignore-cert-default
fix: default ignore-cert to true for rdp connections
This commit is contained in:
@@ -192,6 +192,11 @@ router.post(
|
||||
}
|
||||
}
|
||||
|
||||
if (guacConfig.dpi != null) {
|
||||
const parsed = parseInt(String(guacConfig.dpi), 10);
|
||||
guacConfig.dpi = Number.isFinite(parsed) && parsed > 0 ? parsed : undefined;
|
||||
}
|
||||
|
||||
let token: string;
|
||||
const hostname = host.ip as string;
|
||||
const port = host.port as number;
|
||||
@@ -205,7 +210,8 @@ router.post(
|
||||
port: port || 3389,
|
||||
domain,
|
||||
security: (host.security as string) || undefined,
|
||||
"ignore-cert": (host.ignoreCert as boolean) || false,
|
||||
"ignore-cert":
|
||||
host.ignoreCert !== undefined ? !!host.ignoreCert : true,
|
||||
...guacConfig,
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user