Merge pull request #10779 from jumpserver/pr@dev@perf_terminal_chen

perf: 新增 chen 终端类型
pull/10780/head
Chenyang Shen 2023-06-19 18:18:12 +08:00 committed by GitHub
commit 9cc3942b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -214,6 +214,14 @@ class ConnectMethodUtil:
'support': [Protocol.rdp],
'match': 'map'
},
TerminalType.chen: {
'web_methods': [WebMethod.web_gui],
'listen': [Protocol.http],
'support': [
Protocol.mysql, Protocol.postgresql, Protocol.oracle,
],
'match': 'm2m'
},
}
return protocols

View File

@ -49,6 +49,7 @@ class TerminalType(TextChoices):
razor = 'razor', 'Razor'
tinker = 'tinker', 'Tinker'
video_worker = 'video_worker', 'Video Worker'
chen = 'chen', 'Chen'
@classmethod
def types(cls):