mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 20:07:40 +03:00
Add custom route support (#2)
This commit is contained in:
parent
1ede22e6eb
commit
99492e0d70
6 changed files with 100 additions and 39 deletions
2
tun.go
2
tun.go
|
@ -37,6 +37,8 @@ type Options struct {
|
|||
MTU uint32
|
||||
AutoRoute bool
|
||||
StrictRoute bool
|
||||
Inet4RouteAddress []netip.Prefix
|
||||
Inet6RouteAddress []netip.Prefix
|
||||
IncludeUID []ranges.Range[uint32]
|
||||
ExcludeUID []ranges.Range[uint32]
|
||||
IncludeAndroidUser []int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue