Add create tun from file descriptor

This commit is contained in:
世界 2023-02-26 16:58:07 +08:00
parent 8cb63dbb54
commit 0cdb0eed74
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 67 additions and 49 deletions

1
tun.go
View file

@ -46,6 +46,7 @@ type Options struct {
ExcludePackage []string
InterfaceMonitor DefaultInterfaceMonitor
TableIndex int
FileDescriptor int
}
func CalculateInterfaceName(name string) (tunName string) {