tun_stub.go 391 B

12345678910111213141516
  1. //go:build !(linux || windows) || no_gvisor
  2. package inbound
  3. import (
  4. "context"
  5. "os"
  6. "github.com/sagernet/sing-box/adapter"
  7. "github.com/sagernet/sing-box/log"
  8. "github.com/sagernet/sing-box/option"
  9. )
  10. func NewTun(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TunInboundOptions) (adapter.Inbound, error) {
  11. return nil, os.ErrInvalid
  12. }