perf: 更新 rdp7 protocol 设置

pull/10880/head
Eric 2023-07-03 10:22:49 +08:00
parent 411102ed85
commit 2f81196874
1 changed files with 13 additions and 2 deletions

View File

@ -74,8 +74,19 @@ class Protocol(ChoicesMixin, models.TextChoices):
'port': 3390, 'port': 3390,
'secret_types': ['password'], 'secret_types': ['password'],
'setting': { 'setting': {
'console': False, 'console': {
'security': 'any', 'type': 'bool',
'default': False,
'label': _('Console'),
'help_text': _("Connect to console session")
},
'security': {
'type': 'choice',
'choices': [('any', _('Any')), ('rdp', 'RDP'), ('tls', 'TLS'), ('nla', 'NLA')],
'default': 'any',
'label': _('Security'),
'help_text': _("Security layer to use for the connection")
},
} }
}, },
cls.vnc: { cls.vnc: {