github.com/sagernet/sing-box@v1.9.0-rc.20/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/sagernet/sing-box/log" 9 "github.com/sagernet/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 }