tls_acme_stub.go 410 B

12345678910111213141516
  1. //go:build !with_acme
  2. package inbound
  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. )
  10. func startACME(ctx context.Context, options option.InboundACMEOptions) (*tls.Config, adapter.Service, error) {
  11. return nil, nil, E.New(`ACME is not included in this build, rebuild with -tags with_acme`)
  12. }