github.com/sagernet/sing-box@v1.2.7/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/adapter" 9 "github.com/sagernet/sing-box/log" 10 "github.com/sagernet/sing-box/option" 11 E "github.com/sagernet/sing/common/exceptions" 12 ) 13 14 func NewRealityServer(ctx context.Context, router adapter.Router, logger log.Logger, options option.InboundTLSOptions) (ServerConfig, error) { 15 return nil, E.New(`reality server is not included in this build, rebuild with -tags with_reality_server`) 16 }