From d166b262527af1e05b85a6fc56b7ee4971e7a7d1 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 16 Nov 2023 11:12:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=84=E7=90=86tel?= =?UTF-8?q?net=E5=8D=8F=E8=AE=AE=E8=B5=84=E4=BA=A7=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=E7=9A=84=E7=AB=AF=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/models/component/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/models/component/endpoint.py b/apps/terminal/models/component/endpoint.py index 88d2f6c8f..9b73dbea0 100644 --- a/apps/terminal/models/component/endpoint.py +++ b/apps/terminal/models/component/endpoint.py @@ -41,7 +41,7 @@ class Endpoint(JMSBaseModel): protocol == Protocol.oracle: port = db_port_manager.get_port_by_db(target_instance) else: - if protocol == Protocol.sftp: + if protocol in [Protocol.sftp, Protocol.telnet]: protocol = Protocol.ssh port = getattr(self, f'{protocol}_port', 0) return port