mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Fix some tests to use udp.PickPort()
This commit is contained in:
parent
deb9d08487
commit
9458a1abd3
@ -156,7 +156,7 @@ func TestDokodemoUDP(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
clientPort := uint32(tcp.PickPort())
|
||||
clientPort := uint32(udp.PickPort())
|
||||
clientPortRange := uint32(5)
|
||||
clientConfig := &core.Config{
|
||||
Inbound: []*core.InboundHandlerConfig{
|
||||
|
@ -512,7 +512,7 @@ func TestUDPConnection(t *testing.T) {
|
||||
common.Must(err)
|
||||
defer udpServer.Close()
|
||||
|
||||
clientPort := tcp.PickPort()
|
||||
clientPort := udp.PickPort()
|
||||
clientConfig := &core.Config{
|
||||
Inbound: []*core.InboundHandlerConfig{
|
||||
{
|
||||
|
@ -215,7 +215,7 @@ func TestShadowsocksAES128GCMUDP(t *testing.T) {
|
||||
CipherType: shadowsocks.CipherType_AES_128_GCM,
|
||||
})
|
||||
|
||||
serverPort := tcp.PickPort()
|
||||
serverPort := udp.PickPort()
|
||||
serverConfig := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
serial.ToTypedMessage(&log.Config{
|
||||
@ -245,7 +245,7 @@ func TestShadowsocksAES128GCMUDP(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
clientPort := tcp.PickPort()
|
||||
clientPort := udp.PickPort()
|
||||
clientConfig := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
serial.ToTypedMessage(&log.Config{
|
||||
@ -341,7 +341,7 @@ func TestShadowsocksAES128GCMUDPMux(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
clientPort := tcp.PickPort()
|
||||
clientPort := udp.PickPort()
|
||||
clientConfig := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
serial.ToTypedMessage(&log.Config{
|
||||
|
@ -23,6 +23,7 @@ import (
|
||||
"github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound"
|
||||
"github.com/v2fly/v2ray-core/v4/proxy/vmess/outbound"
|
||||
"github.com/v2fly/v2ray-core/v4/testing/servers/tcp"
|
||||
"github.com/v2fly/v2ray-core/v4/testing/servers/udp"
|
||||
"github.com/v2fly/v2ray-core/v4/transport/internet"
|
||||
"github.com/v2fly/v2ray-core/v4/transport/internet/domainsocket"
|
||||
"github.com/v2fly/v2ray-core/v4/transport/internet/headers/http"
|
||||
@ -257,7 +258,7 @@ func TestVMessQuic(t *testing.T) {
|
||||
defer tcpServer.Close()
|
||||
|
||||
userID := protocol.NewID(uuid.New())
|
||||
serverPort := tcp.PickPort()
|
||||
serverPort := udp.PickPort()
|
||||
serverConfig := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
serial.ToTypedMessage(&log.Config{
|
||||
|
@ -403,7 +403,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
clientPort := tcp.PickPort()
|
||||
clientPort := udp.PickPort()
|
||||
clientConfig := &core.Config{
|
||||
App: []*serial.TypedMessage{
|
||||
serial.ToTypedMessage(&log.Config{
|
||||
|
Loading…
Reference in New Issue
Block a user