perf: 支持 razor 的监控

pull/12809/head
Eric 2024-03-13 18:42:47 +08:00 committed by Bryan
parent a27cc22596
commit e2d14f5e4b
1 changed files with 2 additions and 3 deletions

View File

@ -130,12 +130,11 @@ class Session(OrgModelMixin):
def can_join(self):
if self.is_finished:
return False
if self.login_from == self.LOGIN_FROM.RT:
return False
if self.type != SessionType.normal:
# 会话监控仅支持 normal不支持 tunnel 和 command
return False
if self.terminal.type in [TerminalType.lion, TerminalType.koko]:
support_types = [TerminalType.lion, TerminalType.koko, TerminalType.razor]
if self.terminal.type in support_types:
return True
else:
return False