|
|
|
@ -36,7 +36,7 @@ func TestVMessDynamicPort(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -91,7 +91,7 @@ func TestVMessDynamicPort(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -171,7 +171,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -204,7 +204,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -294,7 +294,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
|
|
defer udpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -327,7 +327,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -427,7 +427,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -460,7 +460,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -550,7 +550,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -583,7 +583,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -711,7 +711,7 @@ func TestVMessKCP(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -808,7 +808,7 @@ func TestVMessIPv6(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -841,7 +841,7 @@ func TestVMessIPv6(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -923,7 +923,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
|
|
defer tcpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -956,7 +956,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -1065,7 +1065,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
|
|
defer udpServer.Close() |
|
|
|
|
|
|
|
|
|
userID := protocol.NewID(uuid.New()) |
|
|
|
|
serverPort := pickPort() |
|
|
|
|
serverPort := tcp.PickPort() |
|
|
|
|
serverConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|
serial.ToTypedMessage(&log.Config{ |
|
|
|
@ -1098,7 +1098,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
clientPort := pickPort() |
|
|
|
|
clientPort := tcp.PickPort() |
|
|
|
|
clientUDPPort := udp.PickPort() |
|
|
|
|
clientConfig := &core.Config{ |
|
|
|
|
App: []*serial.TypedMessage{ |
|
|
|
|