mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Fix console vnc don't use configured ports in some case. Fixes #2111
This commit is contained in:
parent
6f11df6189
commit
f04702d607
@ -578,8 +578,12 @@ class BaseNode:
|
||||
# no need to allocate a port when the console type is none
|
||||
self._console = None
|
||||
elif console_type == "vnc":
|
||||
# VNC is a special case and the range must be 5900-6000
|
||||
self._console = self._manager.port_manager.get_free_tcp_port(self._project, 5900, 6000)
|
||||
vnc_console_start_port_range, vnc_console_end_port_range = self._get_vnc_console_port_range()
|
||||
self._console = self._manager.port_manager.get_free_tcp_port(
|
||||
self._project,
|
||||
vnc_console_start_port_range,
|
||||
vnc_console_end_port_range
|
||||
)
|
||||
else:
|
||||
self._console = self._manager.port_manager.get_free_tcp_port(self._project)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user