mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-30 05:38:37 +00:00
Update proxy.go
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
|||||||
"math/big"
|
"math/big"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pires/go-proxyproto"
|
"github.com/pires/go-proxyproto"
|
||||||
@@ -302,7 +301,6 @@ type VisionWriter struct {
|
|||||||
// internal
|
// internal
|
||||||
writeOnceUserUUID []byte
|
writeOnceUserUUID []byte
|
||||||
directWriteCounter stats.Counter
|
directWriteCounter stats.Counter
|
||||||
access sync.Mutex
|
|
||||||
|
|
||||||
testseed []uint32
|
testseed []uint32
|
||||||
}
|
}
|
||||||
@@ -326,9 +324,6 @@ func NewVisionWriter(writer buf.Writer, trafficState *TrafficState, isUplink boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *VisionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error {
|
func (w *VisionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error {
|
||||||
w.access.Lock()
|
|
||||||
defer w.access.Unlock()
|
|
||||||
|
|
||||||
var isPadding *bool
|
var isPadding *bool
|
||||||
var switchToDirectCopy *bool
|
var switchToDirectCopy *bool
|
||||||
var spliceReadyInbound *session.Inbound
|
var spliceReadyInbound *session.Inbound
|
||||||
|
|||||||
Reference in New Issue
Block a user