|
@@ -216,8 +216,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -264,8 +263,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -322,8 +320,7 @@ func TestVMessGCMReadv(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -370,8 +367,7 @@ func TestVMessGCMReadv(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -431,8 +427,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -479,8 +474,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -534,8 +528,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -582,8 +575,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_CHACHA20_POLY1305,
|
|
Type: protocol.SecurityType_CHACHA20_POLY1305,
|
|
|
},
|
|
},
|
|
@@ -638,8 +630,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -686,8 +677,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_NONE,
|
|
Type: protocol.SecurityType_NONE,
|
|
|
},
|
|
},
|
|
@@ -744,8 +734,7 @@ func TestVMessKCP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -792,8 +781,7 @@ func TestVMessKCP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -874,8 +862,7 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -922,8 +909,7 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -1005,8 +991,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -1059,8 +1044,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -1124,8 +1108,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -1192,8 +1175,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|
|
@@ -1255,8 +1237,7 @@ func TestVMessZero(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -1303,8 +1284,7 @@ func TestVMessZero(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_ZERO,
|
|
Type: protocol.SecurityType_ZERO,
|
|
|
},
|
|
},
|
|
@@ -1358,8 +1338,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
}),
|
|
}),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -1406,8 +1385,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
|
|
|
User: []*protocol.User{
|
|
User: []*protocol.User{
|
|
|
{
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
- Id: userID.String(),
|
|
|
|
|
- AlterId: 64,
|
|
|
|
|
|
|
+ Id: userID.String(),
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
},
|