refactor: Move vision implementation to a new package

This commit is contained in:
H1JK
2023-05-26 20:11:06 +08:00
parent 984bf27d9b
commit 654e76d91e
6 changed files with 362 additions and 300 deletions

View File

@ -2,17 +2,12 @@ package vless
import (
"context"
"errors"
"net"
tlsC "github.com/Dreamacro/clash/component/tls"
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