1
0

utls_stub.go 596 B

123456789101112131415161718
  1. //go:build !with_utls
  2. package tls
  3. import (
  4. "context"
  5. "github.com/sagernet/sing-box/option"
  6. E "github.com/sagernet/sing/common/exceptions"
  7. )
  8. func NewUTLSClient(ctx context.Context, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
  9. return nil, E.New(`uTLS is not included in this build, rebuild with -tags with_utls`)
  10. }
  11. func NewRealityClient(ctx context.Context, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
  12. return nil, E.New(`uTLS, which is required by reality client is not included in this build, rebuild with -tags with_utls`)
  13. }