mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9451cf39ef
If we first request port 49153 (BeginPortRange) explicitly, and later some time request the next free port (of same ip/proto) by calling RequestPort() with port number 0, we will again get 49153 returned, even if it's currently in use. Because findPort() blindly retured BeginPortRange the first run, without checking if it has already been taken. Signed-off-by: shuai-z <zs.broccoli@gmail.com> |
||
---|---|---|
.. | ||
portallocator.go | ||
portallocator_test.go |