Update proxy.go

This commit is contained in:
RPRX
2026-11-08 03:01:30 +00:00
committed by GitHub
parent 761d8032db
commit 00bb0dc737
-5
View File
@@ -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