feat: xrdp 支持挂载本地磁盘(仅适用于 win)

pull/6776/head
xinwen 2021-09-07 18:39:36 +08:00 committed by Jiangjie.Bai
parent 8b483b8c36
commit c1375ed7cb
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class ClientProtocolMixin:
'bookmarktype:i': '3',
'use redirection server name:i': '0',
'smart sizing:i': '0',
#'drivestoredirect:s': '*',
# 'domain:s': ''
# 'alternate shell:s:': '||MySQLWorkbench',
# 'remoteapplicationname:s': 'Firefox',
@ -84,8 +85,11 @@ class ClientProtocolMixin:
height = self.request.query_params.get('height')
width = self.request.query_params.get('width')
full_screen = is_true(self.request.query_params.get('full_screen'))
mnt_local_dev = is_true(self.request.query_params.get('mnt_local_dev'))
token = self.create_token(user, asset, application, system_user)
if mnt_local_dev:
options['drivestoredirect:s'] = '*'
options['screen mode id:i'] = '2' if full_screen else '1'
address = settings.TERMINAL_RDP_ADDR
if not address or address == 'localhost:3389':