fix: Vision disable filter for non-TLS connections
This commit is contained in:
parent
aaf1ce67d1
commit
0bdd896c45
1 changed files with 7 additions and 2 deletions
|
@ -340,15 +340,20 @@ func (vc *Conn) sendRequest(p []byte) bool {
|
|||
|
||||
if isVision && !vc.dst.UDP && !vc.dst.Mux {
|
||||
if len(p) == 0 {
|
||||
vc.packetsToFilter = 0
|
||||
vc.writeFilterApplicationData = false
|
||||
WriteWithPadding(buffer, nil, commandPaddingEnd, vc.id)
|
||||
|
||||
// disable XTLS
|
||||
vc.readProcess = false
|
||||
vc.writeFilterApplicationData = false
|
||||
vc.packetsToFilter = 0
|
||||
} 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
|
||||
|
|
Loading…
Reference in a new issue