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