Browse Source

perf: 新增 chen 终端类型

pull/10779/head
Eric 1 year ago
parent
commit
42852c368c
  1. 8
      apps/terminal/connect_methods.py
  2. 1
      apps/terminal/const.py

8
apps/terminal/connect_methods.py

@ -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

1
apps/terminal/const.py

@ -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):

Loading…
Cancel
Save