1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix an issue with VNC port range

This commit is contained in:
Julien Duponchelle 2016-04-06 15:58:29 +02:00
parent 9b9eddb30c
commit cb197627b4
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

View File

@ -228,7 +228,7 @@ class PortManager:
log.warning(msg)
project.emit("log.warning", {"message": msg})
return port
if port < self._console_port_range[0] or port > self._console_port_range[1]:
if port < port_range_start or port > port_range_end:
old_port = port
port = self.get_free_tcp_port(project, port_range_start=port_range_start, port_range_end=port_range_end)
msg = "TCP port {} is outside the range {}-{} on host {}. Port has been replaced by {}".format(old_port, port_range_start, port_range_end, self._console_host, port)