Add create tun from file descriptor
This commit is contained in:
parent
8cb63dbb54
commit
0cdb0eed74
8 changed files with 67 additions and 49 deletions
1
tun.go
1
tun.go
|
|
@ -46,6 +46,7 @@ type Options struct {
|
|||
ExcludePackage []string
|
||||
InterfaceMonitor DefaultInterfaceMonitor
|
||||
TableIndex int
|
||||
FileDescriptor int
|
||||
}
|
||||
|
||||
func CalculateInterfaceName(name string) (tunName string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue