perf: rdp 支持 console 模式

pull/10339/head
ibuler 2023-04-25 14:25:06 +08:00 committed by Jiangjie.Bai
parent 2a196743f5
commit f51af9736b
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ class RDPFileClientProtocolURLMixin:
remote_app_options = token.get_remote_app_option() remote_app_options = token.get_remote_app_option()
rdp_options.update(remote_app_options) 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 name = token.asset.name
prefix_name = f'{token.user.username}-{name}' prefix_name = f'{token.user.username}-{name}'