From 33fb063f78da12e220a294b5e5ac260abe0abe75 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 24 May 2021 10:48:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9A=82=E6=97=B6=E7=A6=81=E7=94=A8xrd?= =?UTF-8?q?p=E5=AE=9E=E6=97=B6=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/models/session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/terminal/models/session.py b/apps/terminal/models/session.py index 86843433e..b3202a9d9 100644 --- a/apps/terminal/models/session.py +++ b/apps/terminal/models/session.py @@ -109,8 +109,11 @@ class Session(OrgModelMixin): _PROTOCOL = self.PROTOCOL if self.is_finished: return False + if self.login_from == self.LOGIN_FROM.RT: + return False 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 else: