mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-12 12:04:13 -04:00
Chore: change module name (#677)
This commit is contained in:
@@ -6,13 +6,13 @@ import (
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/common/buf"
|
||||
"v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/protocol"
|
||||
"v2ray.com/core/common/uuid"
|
||||
"v2ray.com/core/proxy/vmess"
|
||||
. "v2ray.com/core/proxy/vmess/encoding"
|
||||
"github.com/v2fly/v2ray-core/v4/common"
|
||||
"github.com/v2fly/v2ray-core/v4/common/buf"
|
||||
"github.com/v2fly/v2ray-core/v4/common/net"
|
||||
"github.com/v2fly/v2ray-core/v4/common/protocol"
|
||||
"github.com/v2fly/v2ray-core/v4/common/uuid"
|
||||
"github.com/v2fly/v2ray-core/v4/proxy/vmess"
|
||||
. "github.com/v2fly/v2ray-core/v4/proxy/vmess/encoding"
|
||||
)
|
||||
|
||||
func toAccount(a *vmess.Account) protocol.Account {
|
||||
@@ -24,7 +24,7 @@ func toAccount(a *vmess.Account) protocol.Account {
|
||||
func TestRequestSerialization(t *testing.T) {
|
||||
user := &protocol.MemoryUser{
|
||||
Level: 0,
|
||||
Email: "test@v2ray.com",
|
||||
Email: "test@v2fly.org",
|
||||
}
|
||||
id := uuid.New()
|
||||
account := &vmess.Account{
|
||||
@@ -37,7 +37,7 @@ func TestRequestSerialization(t *testing.T) {
|
||||
Version: 1,
|
||||
User: user,
|
||||
Command: protocol.RequestCommandTCP,
|
||||
Address: net.DomainAddress("www.v2ray.com"),
|
||||
Address: net.DomainAddress("www.v2fly.org"),
|
||||
Port: net.Port(443),
|
||||
Security: protocol.SecurityType_AES128_GCM,
|
||||
}
|
||||
@@ -74,7 +74,7 @@ func TestRequestSerialization(t *testing.T) {
|
||||
func TestInvalidRequest(t *testing.T) {
|
||||
user := &protocol.MemoryUser{
|
||||
Level: 0,
|
||||
Email: "test@v2ray.com",
|
||||
Email: "test@v2fly.org",
|
||||
}
|
||||
id := uuid.New()
|
||||
account := &vmess.Account{
|
||||
@@ -87,7 +87,7 @@ func TestInvalidRequest(t *testing.T) {
|
||||
Version: 1,
|
||||
User: user,
|
||||
Command: protocol.RequestCommand(100),
|
||||
Address: net.DomainAddress("www.v2ray.com"),
|
||||
Address: net.DomainAddress("www.v2fly.org"),
|
||||
Port: net.Port(443),
|
||||
Security: protocol.SecurityType_AES128_GCM,
|
||||
}
|
||||
@@ -116,7 +116,7 @@ func TestInvalidRequest(t *testing.T) {
|
||||
func TestMuxRequest(t *testing.T) {
|
||||
user := &protocol.MemoryUser{
|
||||
Level: 0,
|
||||
Email: "test@v2ray.com",
|
||||
Email: "test@v2fly.org",
|
||||
}
|
||||
id := uuid.New()
|
||||
account := &vmess.Account{
|
||||
|
Reference in New Issue
Block a user