1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-05 05:15:29 -04:00

move port allocation to udp package

This commit is contained in:
Darien Raymond
2017-11-14 23:45:07 +01:00
parent 268d7264e8
commit a430e2065a
4 changed files with 22 additions and 15 deletions

View File

@@ -674,7 +674,7 @@ func TestVMessKCP(t *testing.T) {
defer tcpServer.Close()
userID := protocol.NewID(uuid.New())
serverPort := pickUDPPort()
serverPort := udp.PickPort()
serverConfig := &core.Config{
App: []*serial.TypedMessage{
serial.ToTypedMessage(&log.Config{
@@ -1098,7 +1098,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
}
clientPort := pickPort()
clientUDPPort := pickUDPPort()
clientUDPPort := udp.PickPort()
clientConfig := &core.Config{
App: []*serial.TypedMessage{
serial.ToTypedMessage(&log.Config{