Skip to content

Commit

Permalink
rebase closetun
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyHuang454 committed Sep 14, 2023
1 parent eca32f8 commit 9e7e928
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion experimental/libbox/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ type PlatformInterface interface {
UsePlatformAutoDetectInterfaceControl() bool
AutoDetectInterfaceControl(fd int32) error
OpenTun(options TunOptions) (int32, error)
CloseTun() error
WriteLog(message string)
UseProcFS() bool
FindConnectionOwner(ipProtocol int32, sourceAddress string, sourcePort int32, destinationAddress string, destinationPort int32) (int32, error)
Expand Down
1 change: 0 additions & 1 deletion experimental/libbox/platform/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type Interface interface {
UsePlatformAutoDetectInterfaceControl() bool
AutoDetectInterfaceControl() control.Func
OpenTun(options *tun.Options, platformOptions option.TunPlatformOptions) (tun.Tun, error)
CloseTun() error
UsePlatformDefaultInterfaceMonitor() bool
CreateDefaultInterfaceMonitor(logger logger.Logger) tun.DefaultInterfaceMonitor
UsePlatformInterfaceGetter() bool
Expand Down
4 changes: 0 additions & 4 deletions experimental/libbox/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ func (w *platformInterfaceWrapper) OpenTun(options *tun.Options, platformOptions
return tun.New(*options)
}

func (w *platformInterfaceWrapper) CloseTun() error {
return w.iif.CloseTun()
}

func (w *platformInterfaceWrapper) Write(p []byte) (n int, err error) {
w.iif.WriteLog(string(p))
return len(p), nil
Expand Down

0 comments on commit 9e7e928

Please sign in to comment.