Improve build tags
This commit is contained in:
parent
4c11eaac36
commit
a937ff2d8d
18 changed files with 360 additions and 280 deletions
16
gvisor_other.go
Normal file
16
gvisor_other.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//go:build no_gvisor && !(linux || windows || darwin)
|
||||
|
||||
package tun
|
||||
|
||||
import "context"
|
||||
|
||||
func NewGVisor(
|
||||
ctx context.Context,
|
||||
tun Tun,
|
||||
tunMtu uint32,
|
||||
endpointIndependentNat bool,
|
||||
endpointIndependentNatTimeout int64,
|
||||
handler Handler,
|
||||
) (Stack, error) {
|
||||
return nil, ErrGVisorUnsupported
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue