github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/outbound/shadowsocksr_stub.go (about) 1 //go:build !with_shadowsocksr 2 3 package outbound 4 5 import ( 6 "context" 7 8 "github.com/inazumav/sing-box/adapter" 9 "github.com/inazumav/sing-box/log" 10 "github.com/inazumav/sing-box/option" 11 E "github.com/sagernet/sing/common/exceptions" 12 ) 13 14 func NewShadowsocksR(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.ShadowsocksROutboundOptions) (adapter.Outbound, error) { 15 return nil, E.New(`ShadowsocksR is not included in this build, rebuild with -tags with_shadowsocksr`) 16 }