Update naiveproxy to v147.0.7727.49-1

This commit is contained in:
世界
2026-04-10 20:59:59 +08:00
parent e6427e8244
commit a5c0112f0c
5 changed files with 99 additions and 95 deletions

View File

@@ -9,6 +9,8 @@ import (
"net/netip"
"time"
"github.com/sagernet/sing/common/bufio"
"github.com/sagernet/sing/common/bufio/deadline"
E "github.com/sagernet/sing/common/exceptions"
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"
@@ -431,6 +433,9 @@ func Run(options Options) (*Result, error) {
defer func() {
_ = packetConn.Close()
}()
if deadline.NeedAdditionalReadDeadline(packetConn) {
packetConn = deadline.NewPacketConn(bufio.NewPacketConn(packetConn))
}
select {
case <-ctx.Done():