Make password optional for a RDP Config

This commit is contained in:
2026-09-07 11:41:41 +01:00
parent 1436f4ecb8
commit 9b8cffcc39

View File

@@ -75,7 +75,6 @@ class ActionDispatcher:
rdp_bin,
f"/v:{config['target']}",
f"/u:{config['user']}",
f"/p:{config['password']}",
"/auth-pkg-list:!kerberos,!u2u",
"/sound",
"/audio-mode:0",
@@ -85,6 +84,9 @@ class ActionDispatcher:
"/f"
]
if config.get('password', '') != "":
cmd.append(f"/p:{config['password']}")
if config.get('scale_desktop', '') != "":
cmd.append(f"/scale-desktop:{config['scale_desktop']}")