mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix test break
This commit is contained in:
parent
292d7cc353
commit
e4554e5871
@ -22,7 +22,11 @@ func TestV2RayClose(t *testing.T) {
|
|||||||
|
|
||||||
port := net.Port(dice.RollUint16())
|
port := net.Port(dice.RollUint16())
|
||||||
config := &Config{
|
config := &Config{
|
||||||
Inbound: []*core.InboundHandlerConfig{
|
App: []*serial.TypedMessage{
|
||||||
|
serial.ToTypedMessage(&proxyman.InboundConfig{}),
|
||||||
|
serial.ToTypedMessage(&proxyman.OutboundConfig{}),
|
||||||
|
},
|
||||||
|
Inbound: []*InboundHandlerConfig{
|
||||||
{
|
{
|
||||||
ReceiverSettings: serial.ToTypedMessage(&proxyman.ReceiverConfig{
|
ReceiverSettings: serial.ToTypedMessage(&proxyman.ReceiverConfig{
|
||||||
PortRange: net.SinglePortRange(port),
|
PortRange: net.SinglePortRange(port),
|
||||||
@ -37,7 +41,7 @@ func TestV2RayClose(t *testing.T) {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Outbound: []*core.OutboundHandlerConfig{
|
Outbound: []*OutboundHandlerConfig{
|
||||||
{
|
{
|
||||||
ProxySettings: serial.ToTypedMessage(&outbound.Config{
|
ProxySettings: serial.ToTypedMessage(&outbound.Config{
|
||||||
Receiver: []*protocol.ServerEndpoint{
|
Receiver: []*protocol.ServerEndpoint{
|
||||||
|
Loading…
Reference in New Issue
Block a user