|
|
|
@ -52,10 +52,10 @@ func TestShadowsocksAES256TCP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -150,10 +150,10 @@ func TestShadowsocksAES128UDP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_UDP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -276,10 +276,10 @@ func TestShadowsocksChacha20TCP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -369,10 +369,10 @@ func TestShadowsocksChacha20Poly1305TCP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -461,10 +461,10 @@ func TestShadowsocksAES256GCMTCP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -560,10 +560,10 @@ func TestShadowsocksAES128GCMUDP(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_UDP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -658,10 +658,10 @@ func TestShadowsocksAES128GCMUDPMux(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
@ -757,10 +757,10 @@ func TestShadowsocksNone(t *testing.T) {
|
|
|
|
|
Listen: net.NewIPOrDomain(net.LocalHostIP), |
|
|
|
|
}), |
|
|
|
|
ProxySettings: serial.ToTypedMessage(&shadowsocks.ServerConfig{ |
|
|
|
|
User: &protocol.User{ |
|
|
|
|
Users: []*protocol.User{{ |
|
|
|
|
Account: account, |
|
|
|
|
Level: 1, |
|
|
|
|
}, |
|
|
|
|
}}, |
|
|
|
|
Network: []net.Network{net.Network_TCP}, |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|