Browse Source

perf: rdp 支持 console 模式

pull/10339/head
ibuler 2 years ago committed by Jiangjie.Bai
parent
commit
f51af9736b
  1. 4
      apps/authentication/api/connection_token.py

4
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}'

Loading…
Cancel
Save