acme_stub.go 478 B

1234567891011121314151617
  1. //go:build !with_acme
  2. package tls
  3. import (
  4. "context"
  5. "crypto/tls"
  6. "github.com/sagernet/sing-box/adapter"
  7. "github.com/sagernet/sing-box/option"
  8. E "github.com/sagernet/sing/common/exceptions"
  9. "github.com/sagernet/sing/common/logger"
  10. )
  11. func startACME(ctx context.Context, logger logger.Logger, options option.InboundACMEOptions) (*tls.Config, adapter.SimpleLifecycle, error) {
  12. return nil, nil, E.New(`ACME is not included in this build, rebuild with -tags with_acme`)
  13. }