1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-12 09:00:57 +00:00

Merge pull request #726 from GNS3/port_check

When checking for a free port check if the host and 0.0.0.0 are available
This commit is contained in:
Jeremy Grossmann 2016-10-18 21:02:28 -06:00 committed by GitHub
commit da71f29208

View File

@ -153,6 +153,8 @@ class PortManager:
try:
PortManager._check_port(host, port, socket_type)
if host != "0.0.0.0":
PortManager._check_port("0.0.0.0", port, socket_type)
return port
except OSError as e:
last_exception = e