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