From c53201b753a06c35d7c638e1fba8bb7459079a95 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 1 Dec 2016 11:47:05 +0100 Subject: [PATCH] Fix when you switch console from VNC to telnet it's fail Fix #805 --- gns3server/compute/base_node.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index 129349b5..1f0b61d5 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -99,10 +99,7 @@ class BaseNode: self._console = self._manager.port_manager.get_free_tcp_port(self._project) if self._wrap_console: - if console_type == "vnc": - self._wrap_console = False # We don't support multiple client connected to the same VNC - else: - self._internal_console_port = self._manager.port_manager.get_free_tcp_port(self._project) + self._internal_console_port = self._manager.port_manager.get_free_tcp_port(self._project) if self._aux is None and allocate_aux: self._aux = self._manager.port_manager.get_free_tcp_port(self._project) @@ -331,7 +328,7 @@ class BaseNode: Start a telnet proxy for the console allowing multiple client connected at the same time """ - if not self._wrap_console: + if not self._wrap_console or self._console_type != "telnet": return remaining_trial = 60 while True: