Add set system proxy support for macOS

This commit is contained in:
世界 2022-08-04 22:01:20 +08:00
parent 64dbac8138
commit f691bd5ce1
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
21 changed files with 225 additions and 174 deletions

View file

@ -7,6 +7,7 @@ import (
"github.com/sagernet/sing-box/common/geoip"
"github.com/sagernet/sing-dns"
"github.com/sagernet/sing-tun"
"github.com/sagernet/sing/common/control"
N "github.com/sagernet/sing/common/network"
@ -33,10 +34,9 @@ type Router interface {
InterfaceBindManager() control.BindManager
DefaultInterface() string
AutoDetectInterface() bool
AutoDetectInterfaceName() string
AutoDetectInterfaceIndex() int
DefaultMark() int
NetworkMonitor() tun.NetworkUpdateMonitor
InterfaceMonitor() tun.DefaultInterfaceMonitor
Rules() []Rule
SetTrafficController(controller TrafficController)
}