mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
Revert "perf: add xrdp rdp7 port 3390"
This commit is contained in:
@@ -76,11 +76,8 @@ class RDPFileClientProtocolURLMixin:
|
||||
rdp_options['screen mode id:i'] = '2' if full_screen else '1'
|
||||
|
||||
# 设置 RDP Server 地址
|
||||
protocol = 'rdp7' if token.protocol == 'rdp7' else 'rdp'
|
||||
endpoint = self.get_smart_endpoint(protocol=protocol, asset=token.asset)
|
||||
# 由于 remoteapp 使用 mstsc 客户端连接的时候,都是 rdp 端口, 这里特殊判断 rdp7 端口
|
||||
protocol_port = endpoint.get_protocol_port(protocol, default=3389)
|
||||
rdp_options['full address:s'] = f'{endpoint.host}:{protocol_port}'
|
||||
endpoint = self.get_smart_endpoint(protocol='rdp', asset=token.asset)
|
||||
rdp_options['full address:s'] = f'{endpoint.host}:{endpoint.rdp_port}'
|
||||
|
||||
# 设置用户名
|
||||
rdp_options['username:s'] = '{}|{}'.format(token.user.username, str(token.id))
|
||||
|
Reference in New Issue
Block a user