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