Add custom route support (#2)

This commit is contained in:
XYenon 2022-10-10 13:26:16 +08:00 committed by GitHub
parent 1ede22e6eb
commit 99492e0d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 100 additions and 39 deletions

2
tun.go
View file

@ -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