ech_stub.go 377 B

12345678910111213
  1. //go:build !with_ech
  2. package tls
  3. import (
  4. "github.com/sagernet/sing-box/adapter"
  5. "github.com/sagernet/sing-box/option"
  6. E "github.com/sagernet/sing/common/exceptions"
  7. )
  8. func NewECHClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
  9. return nil, E.New(`ECH is not included in this build, rebuild with -tags with_ech`)
  10. }