reality_stub.go 422 B

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