feat: Support VLESS XTLS Vision (#406)

This commit is contained in:
Hellojack
2023-02-25 13:12:19 +08:00
committed by wwqgtxx
parent 5bfad04b41
commit 81722610d5
7 changed files with 477 additions and 43 deletions

View File

@ -2,6 +2,7 @@ package vless
import (
"context"
"errors"
"net"
tlsC "github.com/Dreamacro/clash/component/tls"
@ -9,6 +10,10 @@ import (
xtls "github.com/xtls/go"
)
var (
ErrNotTLS13 = errors.New("XTLS Vision based on TLS 1.3 outer connection")
)
type XTLSConfig struct {
Host string
SkipCertVerify bool