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