Update TUN creation

This commit is contained in:
世界
2023-02-26 19:16:28 +08:00
parent a8f13bd956
commit 842730707c
14 changed files with 64 additions and 62 deletions

View File

@@ -2,7 +2,7 @@ package libbox
type PlatformInterface interface {
AutoDetectInterfaceControl(fd int32) error
OpenTun(options TunOptions) (TunInterface, error)
OpenTun(options TunOptions) (int32, error)
WriteLog(message string)
UseProcFS() bool
FindConnectionOwner(ipProtocol int32, sourceAddress string, sourcePort int32, destinationAddress string, destinationPort int32) (int32, error)