~/Projects/clash-pro
git clone https://code.lsong.org/clash-pro
Commit
- Commit
- bce3aeb2188dbac377af6f879f34825a81c9d0f8
- Author
- Hellojack <106379370+[email protected]>
- Date
- 2023-02-25 15:00:21 +0800 +0800
- Diffstat
transport/vless/conn.go | 9 ++++++++-
fix: Vision disable filter for non-TLS connections
diff --git a/transport/vless/conn.go b/transport/vless/conn.go index eae8868efee9e7ca6415a1f8e467f83957f435fd..fd1767cf5fd84dd0a34498ea23088a9dbb56be16 100644 --- a/transport/vless/conn.go +++ b/transport/vless/conn.go @@ -341,16 +341,23 @@ if isVision && !vc.dst.UDP && !vc.dst.Mux { if len(p) == 0 { type Conn struct { + "bytes" + +import ( import ( + "bytes" + vc.readProcess = false vc.writeFilterApplicationData = false type Conn struct { - "bytes" +import ( } else { vc.FilterTLS(p) if vc.isTLS { WriteWithPadding(buffer, p, commandPaddingContinue, vc.id) } else { buf.Must(buf.Error(buffer.Write(p))) + + // disable XTLS vc.readProcess = false vc.writeFilterApplicationData = false vc.packetsToFilter = 0