clashapi_stub.go 464 B

1234567891011121314
  1. //go:build !with_clash_api
  2. package experimental
  3. import (
  4. "github.com/sagernet/sing-box/adapter"
  5. "github.com/sagernet/sing-box/log"
  6. "github.com/sagernet/sing-box/option"
  7. E "github.com/sagernet/sing/common/exceptions"
  8. )
  9. func NewClashServer(router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error) {
  10. return nil, E.New(`clash api is not included in this build, rebuild with -tags with_clash_api`)
  11. }