Skip to content

Make sing-box accounting reach its runtime service alias - #7

Merged
lr00rl merged 1 commit into
mainfrom
fix/singbox-stats-service-alias
Jul 22, 2026
Merged

Make sing-box accounting reach its runtime service alias#7
lr00rl merged 1 commit into
mainfrom
fix/singbox-stats-service-alias

Conversation

@lr00rl

@lr00rl lr00rl commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Outcome

Fixes the alpha sing-box stats collector so it calls the V2Ray-compatible gRPC service name that sing-box actually registers at runtime.

Evidence

  • Production failure reproduced as Unimplemented: unknown service experimental.v2rayapi.StatsService
  • Upstream v1.13.12 rewrites the registered service to v2ray.core.app.stats.command.StatsService
  • Regression server now registers the same runtime alias
  • go test -race ./...
  • go vet ./...
  • go build ./cmd/lattice-agent
  • git diff --check

Release

Bumps the embedded development version to 0.3.3-alpha.2; publish only as prerelease and keep stable v0.2.9 as Latest.

sing-box rewrites its generated StatsService descriptor to the V2Ray-compatible service name at runtime. Invoke that alias directly and exercise the same alias in the bufconn regression test so production routing cannot diverge from the test server again.

Constraint: Keep the vendored upstream protobuf schema unchanged; only the runtime gRPC method path differs.

Rejected: Rewrite the protobuf package | sing-box keeps the experimental message schema and only aliases the registered service name.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Keep the regression server registered under v2ray.core.app.stats.command.StatsService.

Tested: go test -race ./...; go vet ./...; go build ./cmd/lattice-agent; git diff --check
@lr00rl
lr00rl merged commit 03f730a into main Jul 22, 2026
1 check passed
@lr00rl
lr00rl deleted the fix/singbox-stats-service-alias branch July 22, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant