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