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