Add support for multi tun address prefix

This commit is contained in:
世界 2022-09-05 21:48:18 +08:00
parent 197b599075
commit 2f5a02c140
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 192 additions and 138 deletions

4
tun.go
View file

@ -32,8 +32,8 @@ type WinTun interface {
type Options struct {
Name string
Inet4Address netip.Prefix
Inet6Address netip.Prefix
Inet4Address []netip.Prefix
Inet6Address []netip.Prefix
MTU uint32
AutoRoute bool
StrictRoute bool