diff options
author | Matthew Heon <mheon@redhat.com> | 2020-12-08 15:57:19 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-12-08 16:23:14 -0500 |
commit | 6b7612062ebf25f9969233b1accea3e376c313cc (patch) | |
tree | e207fa339c7dcbd4f6c9f31ac0663bcebe41ecdb /commands.md | |
parent | 7caef9c497da0c2a16caf4f15152bc543dfb6008 (diff) | |
download | podman-6b7612062ebf25f9969233b1accea3e376c313cc.tar.gz podman-6b7612062ebf25f9969233b1accea3e376c313cc.tar.bz2 podman-6b7612062ebf25f9969233b1accea3e376c313cc.zip |
Correct port range logic for port generation
The existing logic (Range > 0) always triggered, because range is
guaranteed to be at least 1 (a single port has a range of 1, a
two port range (e.g. 80-81) has a range of 2, and so on). As such
this could cause ports that had a host port assigned to them by
the user to randomly assign one instead.
Fixes #8650
Fixes #8651
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'commands.md')
0 files changed, 0 insertions, 0 deletions