refactor: 修改 xrdp 挂载磁盘参数名称

pull/6718/head
xinwen 2021-09-09 16:19:39 +08:00 committed by Jiangjie.Bai
parent ca34216141
commit dac3f7fc71
1 changed files with 2 additions and 2 deletions

View File

@ -85,10 +85,10 @@ class ClientProtocolMixin:
height = self.request.query_params.get('height') height = self.request.query_params.get('height')
width = self.request.query_params.get('width') width = self.request.query_params.get('width')
full_screen = is_true(self.request.query_params.get('full_screen')) full_screen = is_true(self.request.query_params.get('full_screen'))
mnt_local_dev = is_true(self.request.query_params.get('mnt_local_dev')) drives_redirect = is_true(self.request.query_params.get('drives_redirect'))
token = self.create_token(user, asset, application, system_user) token = self.create_token(user, asset, application, system_user)
if mnt_local_dev: if drives_redirect:
options['drivestoredirect:s'] = '*' options['drivestoredirect:s'] = '*'
options['screen mode id:i'] = '2' if full_screen else '1' options['screen mode id:i'] = '2' if full_screen else '1'
address = settings.TERMINAL_RDP_ADDR address = settings.TERMINAL_RDP_ADDR