diff options
Diffstat (limited to 'dev/run')
-rwxr-xr-x | dev/run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ def get_ports(ctx, idnode): def get_available_ports(num): ports = [] - while len(ports) < num: + while len(ports) < num + 1: with contextlib.closing( socket.socket(socket.AF_INET, socket.SOCK_STREAM) ) as soc: |