update
This commit is contained in:
@@ -96,6 +96,13 @@ func TestParseVMess(t *testing.T) {
|
||||
if n["network"] != "ws" {
|
||||
t.Errorf("expected network ws, got %v", n["network"])
|
||||
}
|
||||
ws, ok := n["ws-opts"].(map[string]any)
|
||||
if !ok {
|
||||
t.Fatalf("expected ws-opts map, got %T", n["ws-opts"])
|
||||
}
|
||||
if ws["path"] != "/path" {
|
||||
t.Errorf("expected ws path /path, got %v", ws["path"])
|
||||
}
|
||||
if n["tls"] != true {
|
||||
t.Errorf("expected tls true, got %v", n["tls"])
|
||||
}
|
||||
@@ -117,6 +124,13 @@ func TestParseVLESS(t *testing.T) {
|
||||
if n["network"] != "ws" {
|
||||
t.Errorf("expected network ws, got %v", n["network"])
|
||||
}
|
||||
ws, ok := n["ws-opts"].(map[string]any)
|
||||
if !ok {
|
||||
t.Fatalf("expected ws-opts map, got %T", n["ws-opts"])
|
||||
}
|
||||
if ws["path"] != "/path" {
|
||||
t.Errorf("expected ws path /path, got %v", ws["path"])
|
||||
}
|
||||
if n["tls"] != true {
|
||||
t.Errorf("expected tls true, got %v", n["tls"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user