Skip to content

Fix speedtest routing through HAProxy#5507

Open
alchemistklk wants to merge 1 commit into
hiddify:devfrom
alchemistklk:agent/fix-speedtest-routing
Open

Fix speedtest routing through HAProxy#5507
alchemistklk wants to merge 1 commit into
hiddify:devfrom
alchemistklk:agent/fix-speedtest-routing

Conversation

@alchemistklk

Copy link
Copy Markdown

What changed

  • route the client speedtest path to nginx_dispatcher_http_h2 before the generic panel path
  • apply the route consistently to HTTP map variants and TCP-mode dispatch
  • generate the route only when speed_test is enabled

Why

The bundled OpenSpeedTest service can be healthy on 127.0.0.1:438, while the public URL returns {"message":"Not Found"}. HAProxy currently matches the broader client panel prefix first, so the request reaches Hiddify Panel instead of the Nginx speedtest location.

This fixes #5040 and #5435.

Validation

Rendered all changed Jinja templates with speed_test enabled and disabled. Verified that the specific speedtest route is present and precedes the generic panel route only when enabled.

@alchemistklk
alchemistklk marked this pull request as ready for review July 20, 2026 09:11
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.

Speedtest Not Working at /user-token/speedtest/ – Returns {"message":"Not Found"}

1 participant