Improve build tags
This commit is contained in:
parent
4c11eaac36
commit
a937ff2d8d
18 changed files with 360 additions and 280 deletions
5
tun.go
5
tun.go
|
|
@ -1,11 +1,7 @@
|
|||
//go:build !no_gvisor
|
||||
|
||||
package tun
|
||||
|
||||
import (
|
||||
N "github.com/sagernet/sing/common/network"
|
||||
|
||||
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
)
|
||||
|
||||
type Handler interface {
|
||||
|
|
@ -14,6 +10,5 @@ type Handler interface {
|
|||
}
|
||||
|
||||
type Tun interface {
|
||||
NewEndpoint() (stack.LinkEndpoint, error)
|
||||
Close() error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue