github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/common/tls/reality_stub.go (about) 1 //go:build !with_reality_server 2 3 package tls 4 5 import ( 6 "context" 7 8 "github.com/inazumav/sing-box/log" 9 "github.com/inazumav/sing-box/option" 10 E "github.com/sagernet/sing/common/exceptions" 11 ) 12 13 func NewRealityServer(ctx context.Context, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) { 14 return nil, E.New(`reality server is not included in this build, rebuild with -tags with_reality_server`) 15 }