mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-11 20:29:40 +00:00
perf: 连接 RDP 协议会话时,高级选项支持 session bpp:i 参数配置;默认 32; (#12319)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -5,7 +5,7 @@ from rest_framework import serializers
|
||||
|
||||
from users.const import (
|
||||
RDPResolution, RDPSmartSize, KeyboardLayout,
|
||||
RDPClientOption, AppletConnectionMethod
|
||||
RDPClientOption, AppletConnectionMethod, RDPColorQuality,
|
||||
)
|
||||
|
||||
|
||||
@@ -40,6 +40,10 @@ class GraphicsSerializer(serializers.Serializer):
|
||||
choices=RDPClientOption.choices, default={RDPClientOption.FULL_SCREEN},
|
||||
label=_('RDP client option'), required=False
|
||||
)
|
||||
rdp_color_quality = serializers.ChoiceField(
|
||||
choices=RDPColorQuality.choices, default=RDPColorQuality.HIGH,
|
||||
label=_('RDP color quality'), required=False
|
||||
)
|
||||
rdp_smart_size = serializers.ChoiceField(
|
||||
RDPSmartSize.choices, default=RDPSmartSize.DISABLE,
|
||||
required=False, label=_('Rdp smart size'),
|
||||
|
Reference in New Issue
Block a user