mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5860] [Bug]: Freedom ping test in the outbound section #4071
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arashammm on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5860
Describe the bug
Hello there,
Thank you for you continuous effort in this porject.
In previous veriosn we were able to ping and health-check outbounds with freedom type. (v 2.x)
In the current major version this feature is no longer avaible for freedom types. Bear in mind that sometimes we configure tunnels and interface outside the 3x-ui environment and want to direct traffic towards that interface using freedom outbound and we were able to check ping for those outbounds.
Please bring this back in future updates.
How to reproduce the problem
1.go to outbound section in the new panel.
2. create a new outbound with freedom type
3. try to ping it using the probe icon.
Expected behavior
Older version behavior:
Actual behavior
Current panel behavior:
Relevant logs
Screenshots
No response
3x-ui version
3.4.2
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jul 8, 2026):
This is current, intentional behavior in 3.4.2, not a defect in the ping logic itself —
freedom(anddns) outbounds are explicitly excluded from the probe feature in every mode:internal/web/service/outbound/outbound.go:163-165(TCP-mode probe): outbounds withprotocol == "freedom"short-circuit to"Outbound has no testable endpoint".internal/web/service/outbound/probe_http.go:179-182(HTTP/"real"-mode probe):protocol == "freedom" || protocol == "dns"short-circuits to"Direct/DNS outbound cannot be tested".frontend/src/pages/xray/outbounds/outbounds-tab-helpers.ts:37-45(isUntestable): the probe icon itself is disabled in the UI forFreedomandDNSprotocols.The rationale documented in the code is that
freedom/dns"aren't proxies" — a bare TCP dial has no fixed remote endpoint to target, and an HTTP probe through a plainfreedomoutbound would just measure the panel host's own direct internet reachability rather than a tunnel, so the current implementation treats them as universally untestable.Your use case — a
freedomoutbound configured with a specific egress target (e.g. via theredirectsetting inFreedomOutboundSettingsSchema,frontend/src/schemas/protocols/outbound/freedom.ts:54) pointing at a local tunnel/interface — isn't handled by that blanket rule, since aredirect-targetedfreedomoutbound does have a concrete endpoint worth pinging. Confirmed inextractOutboundEndpoints(internal/web/service/outbound/outbound.go:239onward): it has per-protocol cases for building a testable endpoint (vmess, vless, trojan, shadowsocks, http, socks, wireguard, hysteria), but no case forfreedom/itsredirectfield, so even if the blanket exclusion were lifted,redirect-based endpoint extraction would need to be added for this to work end-to-end.This looks like a legitimate gap for the
redirect-target case rather than something to bring back unconditionally for allfreedomoutbounds (a plainfreedomoutbound with noredirectgenuinely has nothing to ping). I'm labeling it as an enhancement request; a maintainer would need to decide whether to scope pinging toredirect-configuredfreedomoutbounds specifically.This reply was generated automatically; a maintainer may follow up.