From 77a6a08192f4683fe22b87af2fe16e7bbb457f26 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 8 Sep 2021 23:34:57 +0800 Subject: [PATCH] Fix: VLESS test cases --- test/config/vless-xtls.json | 1 + test/vless_test.go | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/test/config/vless-xtls.json b/test/config/vless-xtls.json index 3c5b4649..b4381d61 100644 --- a/test/config/vless-xtls.json +++ b/test/config/vless-xtls.json @@ -8,6 +8,7 @@ "clients": [ { "id": "b831381d-6324-4d53-ad4f-8cda48b30811", + "flow": "xtls-rprx-direct", "level": 0, "email": "love@example.com" } diff --git a/test/vless_test.go b/test/vless_test.go index fce154e3..8bce51d6 100644 --- a/test/vless_test.go +++ b/test/vless_test.go @@ -40,7 +40,7 @@ func TestClash_VlessTLS(t *testing.T) { TLS: true, SkipCertVerify: true, ServerName: "example.org", - UDP: true, + UDP: false, }) if err != nil { assert.FailNow(t, err.Error()) @@ -71,16 +71,16 @@ func TestClash_VlessXTLS(t *testing.T) { defer cleanContainer(id) proxy, err := outbound.NewVless(outbound.VlessOption{ - Name: "vless", - Server: localIP.String(), - Port: 10002, - UUID: "b831381d-6324-4d53-ad4f-8cda48b30811", - TLS: true, - Flow: "xtls-rprx-direct", - FlowShow: true, + Name: "vless", + Server: localIP.String(), + Port: 10002, + UUID: "b831381d-6324-4d53-ad4f-8cda48b30811", + TLS: true, + Flow: "xtls-rprx-direct", + //FlowShow: true, SkipCertVerify: true, ServerName: "example.org", - UDP: true, + UDP: false, }) if err != nil { assert.FailNow(t, err.Error())