perf: 添加lion终端类型; 修改加入会话校验逻辑(vnc/rdp)

This commit is contained in:
Bai
2021-05-17 14:46:40 +08:00
committed by Jiangjie.Bai
parent 5e9006d0c2
commit 189bc9d74a
5 changed files with 7 additions and 13 deletions

View File

@@ -109,7 +109,9 @@ class Session(OrgModelMixin):
_PROTOCOL = self.PROTOCOL
if self.is_finished:
return False
if self.protocol in [_PROTOCOL.SSH, _PROTOCOL.TELNET, _PROTOCOL.K8S]:
if self.protocol in [
_PROTOCOL.SSH, _PROTOCOL.VNC, _PROTOCOL.RDP, _PROTOCOL.TELNET, _PROTOCOL.K8S
]:
return True
else:
return False