Improve iproute2 rules

This commit is contained in:
世界
2024-05-30 22:26:32 +08:00
parent d6d6f72fea
commit 6875a33c28
3 changed files with 9 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ import (
"net/netip"
"os"
"os/exec"
"slices"
"strings"
"github.com/sagernet/sing-box/adapter"
@@ -21,6 +20,8 @@ import (
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"
"github.com/sagernet/sing/common/x/list"
"golang.org/x/exp/slices"
)
const (
@@ -57,6 +58,9 @@ func newAutoRedirect(t *Tun) (*tunAutoRedirect, error) {
router: t.router,
logger: t.logger,
tag: t.tag,
listenOptions: option.ListenOptions{
InboundOptions: t.inboundOptions,
},
},
tunOptions: &t.tunOptions,
interfaceFinder: t.router.InterfaceFinder(),