1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/networkdriver
shuai-z 9451cf39ef Port number 49153(BeginPortRange) would be returned twice, causing duplication and potential errors.
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>
2014-10-23 10:49:33 +08:00
..
bridge Support for consistent MAC address. 2014-10-03 13:22:38 -07:00
ipallocator IPAllocator: Ensure the allocated IPs are within network range. 2014-09-24 11:04:28 -07:00
portallocator Port number 49153(BeginPortRange) would be returned twice, causing duplication and potential errors. 2014-10-23 10:49:33 +08:00
portmapper pass extra file to child process as status handler 2014-10-08 12:53:43 -04:00
network.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
network_test.go Update libcontainer imports 2014-06-10 19:58:15 -07:00
utils.go Update libcontainer imports 2014-06-10 19:58:15 -07:00