Add [include/exclude]_interface iproute2 options

This commit is contained in:
世界 2023-08-20 15:48:48 +08:00
parent 10d98f2679
commit 824b903ebd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 106 additions and 0 deletions

2
tun.go
View file

@ -41,6 +41,8 @@ type Options struct {
StrictRoute bool
Inet4RouteAddress []netip.Prefix
Inet6RouteAddress []netip.Prefix
IncludeInterface []string
ExcludeInterface []string
IncludeUID []ranges.Range[uint32]
ExcludeUID []ranges.Range[uint32]
IncludeAndroidUser []int