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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user