mirror of https://github.com/jumpserver/jumpserver
perf: fix rdp file resolution value
parent
c1c3236a30
commit
4b28b079dc
|
@ -123,8 +123,10 @@ class RDPFileClientProtocolURLMixin:
|
|||
# rdp_options['domain:s'] = token.account_ad_domain
|
||||
|
||||
# 设置宽高
|
||||
height = self.request.query_params.get('height')
|
||||
width = self.request.query_params.get('width')
|
||||
|
||||
resolution_value = token.connect_options.get('resolution', 'auto')
|
||||
if resolution_value != 'auto':
|
||||
width, height = resolution_value.split('x')
|
||||
if width and height:
|
||||
rdp_options['desktopwidth:i'] = width
|
||||
rdp_options['desktopheight:i'] = height
|
||||
|
|
Loading…
Reference in New Issue