mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-04 18:27:30 +03:00
Exclude gVisor for unsupported arch
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build linux || windows
|
||||
|
||||
package inbound
|
||||
|
||||
import (
|
||||
|
||||
16
inbound/tun_stub.go
Normal file
16
inbound/tun_stub.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//go:build !linux && !windows
|
||||
|
||||
package inbound
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"github.com/sagernet/sing-box/adapter"
|
||||
"github.com/sagernet/sing-box/log"
|
||||
"github.com/sagernet/sing-box/option"
|
||||
)
|
||||
|
||||
func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TunInboundOptions) (adapter.Inbound, error) {
|
||||
return nil, os.ErrInvalid
|
||||
}
|
||||
Reference in New Issue
Block a user