|
|
|
@ -67,8 +67,8 @@ func TestShadowsocksChaCha20Poly1305TCP(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}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -163,8 +163,8 @@ func TestShadowsocksAES256GCMTCP(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}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -260,8 +260,8 @@ func TestShadowsocksAES128GCMUDP(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}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -356,8 +356,8 @@ func TestShadowsocksAES128GCMUDPMux(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}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -447,8 +447,8 @@ func TestShadowsocksNone(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}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|