|
|
@@ -216,7 +216,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -263,7 +263,7 @@ func TestVMessGCM(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -320,7 +320,7 @@ func TestVMessGCMReadv(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -367,7 +367,7 @@ func TestVMessGCMReadv(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -427,7 +427,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -474,7 +474,7 @@ func TestVMessGCMUDP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -528,7 +528,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -575,7 +575,7 @@ func TestVMessChacha20(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_CHACHA20_POLY1305,
|
|
|
},
|
|
|
@@ -630,7 +630,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -677,7 +677,7 @@ func TestVMessNone(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_NONE,
|
|
|
},
|
|
|
@@ -734,7 +734,7 @@ func TestVMessKCP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -781,7 +781,7 @@ func TestVMessKCP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -862,7 +862,7 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -909,7 +909,7 @@ func TestVMessKCPLarge(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -991,7 +991,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -1044,7 +1044,7 @@ func TestVMessGCMMux(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -1108,7 +1108,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -1175,7 +1175,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -1237,7 +1237,7 @@ func TestVMessZero(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -1284,7 +1284,7 @@ func TestVMessZero(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_ZERO,
|
|
|
},
|
|
|
@@ -1338,7 +1338,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
|
@@ -1385,7 +1385,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|
|
|
@@ -1443,7 +1443,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
TestsEnabled: "AuthenticatedLength|NoTerminationSignal",
|
|
|
}),
|
|
|
},
|
|
|
@@ -1491,7 +1491,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
|
|
|
{
|
|
|
Account: serial.ToTypedMessage(&vmess.Account{
|
|
|
Id: userID.String(),
|
|
|
- AlterId: 64,
|
|
|
+ AlterId: 0,
|
|
|
SecuritySettings: &protocol.SecurityConfig{
|
|
|
Type: protocol.SecurityType_AES128_GCM,
|
|
|
},
|