This commit is contained in:
2026-07-28 10:32:21 +08:00
parent fc8c23beee
commit 389c0d172a
17 changed files with 678 additions and 157 deletions
+14
View File
@@ -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"])
}