Fix: VLESS test cases
This commit is contained in:
parent
a7c8631976
commit
1b4294a57e
2 changed files with 10 additions and 9 deletions
|
@ -8,6 +8,7 @@
|
||||||
"clients": [
|
"clients": [
|
||||||
{
|
{
|
||||||
"id": "b831381d-6324-4d53-ad4f-8cda48b30811",
|
"id": "b831381d-6324-4d53-ad4f-8cda48b30811",
|
||||||
|
"flow": "xtls-rprx-direct",
|
||||||
"level": 0,
|
"level": 0,
|
||||||
"email": "love@example.com"
|
"email": "love@example.com"
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ func TestClash_VlessTLS(t *testing.T) {
|
||||||
TLS: true,
|
TLS: true,
|
||||||
SkipCertVerify: true,
|
SkipCertVerify: true,
|
||||||
ServerName: "example.org",
|
ServerName: "example.org",
|
||||||
UDP: true,
|
UDP: false,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
assert.FailNow(t, err.Error())
|
assert.FailNow(t, err.Error())
|
||||||
|
@ -71,16 +71,16 @@ func TestClash_VlessXTLS(t *testing.T) {
|
||||||
defer cleanContainer(id)
|
defer cleanContainer(id)
|
||||||
|
|
||||||
proxy, err := outbound.NewVless(outbound.VlessOption{
|
proxy, err := outbound.NewVless(outbound.VlessOption{
|
||||||
Name: "vless",
|
Name: "vless",
|
||||||
Server: localIP.String(),
|
Server: localIP.String(),
|
||||||
Port: 10002,
|
Port: 10002,
|
||||||
UUID: "b831381d-6324-4d53-ad4f-8cda48b30811",
|
UUID: "b831381d-6324-4d53-ad4f-8cda48b30811",
|
||||||
TLS: true,
|
TLS: true,
|
||||||
Flow: "xtls-rprx-direct",
|
Flow: "xtls-rprx-direct",
|
||||||
FlowShow: true,
|
//FlowShow: true,
|
||||||
SkipCertVerify: true,
|
SkipCertVerify: true,
|
||||||
ServerName: "example.org",
|
ServerName: "example.org",
|
||||||
UDP: true,
|
UDP: false,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
assert.FailNow(t, err.Error())
|
assert.FailNow(t, err.Error())
|
||||||
|
|
Loading…
Reference in a new issue