|
@@ -71,8 +71,8 @@ func TestVMessDynamicPort(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -131,8 +131,8 @@ func TestVMessDynamicPort(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -223,8 +223,8 @@ func TestVMessGCM(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -325,8 +325,8 @@ func TestVMessGCMReadv(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -430,8 +430,8 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_UDP},
|
|
|
}),
|
|
|
},
|
|
@@ -529,8 +529,8 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -629,8 +629,8 @@ func TestVMessNone(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -731,8 +731,8 @@ func TestVMessKCP(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -802,11 +802,11 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
PortList: &net.PortList{Range: []*net.PortRange{net.SinglePortRange(serverPort)}},
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
StreamSettings: &internet.StreamConfig{
|
|
|
- ProtocolName: "mkcp",
|
|
|
+ ProtocolName: "mkcp",
|
|
|
TransportSettings: []*internet.TransportConfig{
|
|
|
{
|
|
|
ProtocolName: "mkcp",
|
|
|
- Settings: serial.ToTypedMessage(&kcp.Config{
|
|
|
+ Settings: serial.ToTypedMessage(&kcp.Config{
|
|
|
ReadBuffer: &kcp.ReadBuffer{
|
|
|
Size: 512 * 1024,
|
|
|
},
|
|
@@ -857,8 +857,8 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -885,11 +885,11 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
}),
|
|
|
SenderSettings: serial.ToTypedMessage(&proxyman.SenderConfig{
|
|
|
StreamSettings: &internet.StreamConfig{
|
|
|
- ProtocolName: "mkcp",
|
|
|
+ ProtocolName: "mkcp",
|
|
|
TransportSettings: []*internet.TransportConfig{
|
|
|
{
|
|
|
ProtocolName: "mkcp",
|
|
|
- Settings: serial.ToTypedMessage(&kcp.Config{
|
|
|
+ Settings: serial.ToTypedMessage(&kcp.Config{
|
|
|
ReadBuffer: &kcp.ReadBuffer{
|
|
|
Size: 512 * 1024,
|
|
|
},
|
|
@@ -984,8 +984,8 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -1100,8 +1100,8 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -1111,8 +1111,8 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(udpDest.Address),
|
|
|
- Port: uint32(udpDest.Port),
|
|
|
+ Address: net.NewIPOrDomain(udpDest.Address),
|
|
|
+ Port: uint32(udpDest.Port),
|
|
|
Networks: []net.Network{net.Network_UDP},
|
|
|
}),
|
|
|
},
|
|
@@ -1224,8 +1224,8 @@ func TestVMessZero(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -1323,8 +1323,8 @@ func TestVMessGCMLengthAuth(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|
|
@@ -1427,8 +1427,8 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP),
|
|
|
}),
|
|
|
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
|
|
|
- Address: net.NewIPOrDomain(dest.Address),
|
|
|
- Port: uint32(dest.Port),
|
|
|
+ Address: net.NewIPOrDomain(dest.Address),
|
|
|
+ Port: uint32(dest.Port),
|
|
|
Networks: []net.Network{net.Network_TCP},
|
|
|
}),
|
|
|
},
|