wireguard_stub.go 501 B

12345678910111213141516
  1. //go:build !with_wireguard
  2. package outbound
  3. import (
  4. "context"
  5. "github.com/sagernet/sing-box/adapter"
  6. "github.com/sagernet/sing-box/log"
  7. "github.com/sagernet/sing-box/option"
  8. E "github.com/sagernet/sing/common/exceptions"
  9. )
  10. func NewWireGuard(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.WireGuardOutboundOptions) (adapter.Outbound, error) {
  11. return nil, E.New(`WireGuard is not included in this build, rebuild with -tags with_wireguard`)
  12. }