mirror of https://github.com/jumpserver/jumpserver
perf: 支持 razor 的监控
parent
a27cc22596
commit
e2d14f5e4b
|
@ -130,12 +130,11 @@ class Session(OrgModelMixin):
|
||||||
def can_join(self):
|
def can_join(self):
|
||||||
if self.is_finished:
|
if self.is_finished:
|
||||||
return False
|
return False
|
||||||
if self.login_from == self.LOGIN_FROM.RT:
|
|
||||||
return False
|
|
||||||
if self.type != SessionType.normal:
|
if self.type != SessionType.normal:
|
||||||
# 会话监控仅支持 normal,不支持 tunnel 和 command
|
# 会话监控仅支持 normal,不支持 tunnel 和 command
|
||||||
return False
|
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
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue