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>
added test, gofmtd

Signed-off-by: shuai-z <zs.broccoli@gmail.com>
Merge pull request #8671 from shuai-z/master

Port number 49153(BeginPortRange) would be returned twice, causing dupli...