Add strict route option

This commit is contained in:
世界 2022-08-26 20:54:59 +08:00
parent d1c9876e60
commit e01ce3a8a7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 106 additions and 74 deletions

1
tun.go
View file

@ -36,6 +36,7 @@ type Options struct {
Inet6Address netip.Prefix
MTU uint32
AutoRoute bool
StrictRoute bool
IncludeUID []ranges.Range[uint32]
ExcludeUID []ranges.Range[uint32]
IncludeAndroidUser []int