1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fix when you switch console from VNC to telnet it's fail

Fix #805
This commit is contained in:
Julien Duponchelle 2016-12-01 11:47:05 +01:00
parent 95e944257a
commit c53201b753
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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: