mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Fixes checks for free console and aux ports.
This commit is contained in:
1 parent
96231e3f7f
commit
e70ea26639
3 files changed
+18
-7
No files matched your search
@@ -793,7 +793,7 @@ class IOUDevice(object):
|
||||
socket_type = socket.SOCK_STREAM
|
||||
|
||||
for port in range(start_port, end_port):
|
||||
if port > end_port:
|
||||
if port + 1 == end_port:
|
||||
raise IOUError("Could not find a free port between {0} and {1}".format(start_port, end_port))
|
||||
try:
|
||||
if ":" in host:
|
||||
|
||||
Reference in new issue
Block a user