perf: 暂时禁用xrdp实时监控

pull/6191/head
ibuler 4 years ago committed by Jiangjie.Bai
parent 7edc9c37f8
commit 33fb063f78

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

Loading…
Cancel
Save