Fix tun GSO check

This commit is contained in:
世界
2026-10-02 18:00:09 +08:00
parent 021e0877a3
commit 0efa644942
3 changed files with 2 additions and 11 deletions
-5
View File
@@ -4,7 +4,6 @@ import (
"context"
"net"
"net/netip"
"slices"
"strings"
"github.com/sagernet/sing-box/adapter"
@@ -33,10 +32,6 @@ type endpointBase struct {
logger log.ContextLogger
}
func (e *endpointBase) SupportsFlow(network string) bool {
return slices.Contains(e.Network(), network)
}
func (e *endpointBase) newConnection(ctx context.Context, endpoint adapter.Endpoint, localAddresses []netip.Prefix, conn net.Conn, source M.Socksaddr, destination M.Socksaddr, onClose N.CloseHandlerFunc) {
var metadata adapter.InboundContext
metadata.Inbound = endpoint.Tag()