Improve build tags
This commit is contained in:
parent
4c11eaac36
commit
a937ff2d8d
18 changed files with 360 additions and 280 deletions
10
gvisor_tun.go
Normal file
10
gvisor_tun.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//go:build !(no_gvisor || !(linux || windows || darwin))
|
||||
|
||||
package tun
|
||||
|
||||
import "gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
|
||||
type GVisorTun interface {
|
||||
Tun
|
||||
NewEndpoint() (stack.LinkEndpoint, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue