From f51af9736b7f47813b7a0ddc949ed9d3f2728b17 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 25 Apr 2023 14:25:06 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20rdp=20=E6=94=AF=E6=8C=81=20console=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/api/connection_token.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/authentication/api/connection_token.py b/apps/authentication/api/connection_token.py index 5b5dcd700..a7fed5e7a 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -99,6 +99,10 @@ class RDPFileClientProtocolURLMixin: remote_app_options = token.get_remote_app_option() rdp_options.update(remote_app_options) + rdp = token.asset.platform.protocols.filter(name='rdp').first() + if rdp and rdp.setting.get('console'): + rdp_options['administrative session:i:'] = '1' + # 文件名 name = token.asset.name prefix_name = f'{token.user.username}-{name}'