mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
(cherry picked from commit 9458a1abd3ef104576129c4be54dccc17af12a76, modified by committer) In the previous version of the test code, when attempting to listen for a UDP socket, the port availability check check for TCP port instead of UDP port. This make it possible to select a UDP port that is unavailable. See Also: https://github.com/v2fly/v2ray-core/pull/1302