From c1375ed7cbebad10e0042804b9b07cd5f064050e Mon Sep 17 00:00:00 2001 From: xinwen Date: Tue, 7 Sep 2021 18:39:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20xrdp=20=E6=94=AF=E6=8C=81=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E6=9C=AC=E5=9C=B0=E7=A3=81=E7=9B=98(=E4=BB=85?= =?UTF-8?q?=E9=80=82=E7=94=A8=E4=BA=8E=20win)?= 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 383a87c32..4e29007fe 100644 --- a/apps/authentication/api/connection_token.py +++ b/apps/authentication/api/connection_token.py @@ -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':