github.com/sagernet/sing-box@v1.2.7/common/tls/utls_stub.go (about)

     1  //go:build !with_utls
     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 NewUTLSClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
    12  	return nil, E.New(`uTLS is not included in this build, rebuild with -tags with_utls`)
    13  }
    14  
    15  func NewRealityClient(router adapter.Router, serverAddress string, options option.OutboundTLSOptions) (Config, error) {
    16  	return nil, E.New(`uTLS, which is required by reality client is not included in this build, rebuild with -tags with_utls`)
    17  }