8f53a5ccd0
get_free_tcp_port() effectively ignored the min_range parameter by using min(1, min_range). This meant that min_range was always 1 (unless a negative value was passed). As ports lower than 1024 are privileged on Linux, this lead to the agent trying to bind to ports that it did not have permission to. By using max(1, min_range), We insure that min_range is always at least 1, but will still use the provided parameter (1024 by default). |
||
---|---|---|
.. | ||
common | ||
infection_monkey | ||
monkey_island | ||
tests | ||
.coveragerc | ||
__init__.py | ||
codecov.yml | ||
infection_monkey.py | ||
monkey_island.py |