reality_stub.go 485 B

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