mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4766] [Bug]: #3304
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#3304
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 @mcroff88 on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4766
Describe the bug
Testing connection in "outbound" via ipv6 failed, but connection is working. This problem since 3.0.0 release (ipv6 - "test connection" works fine in 2.9.4)
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.5
Xray-core version
26
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
Any
Is the panel behind a reverse proxy or CDN?
Yes — Cloudflare (proxied DNS)
Before submitting
@github-actions[bot] commented on GitHub (Jun 1, 2026):
Thanks for the detailed report!
Root cause identified: The default "Test Connection" mode is TCP, and the code that builds the dial address for TCP mode formats IPv6 addresses incorrectly.
In
web/service/outbound.go, theaddServerhelper insideextractOutboundEndpointsproduces:But Go's
net.DialTimeoutrequires:Because colons are already part of an IPv6 address, Go cannot parse the unbracketed form as
host:portand the dial fails immediately — even though the outbound itself is perfectly reachable. The fix is to usenet.JoinHostPort(host, port)(or wrap the host in[…]when it contains a colon) so IPv6 addresses are formatted correctly.Workaround (until a fix is released): In the outbound test dialog, switch the mode from TCP to HTTP before clicking "Test Connection". HTTP mode spins up a temporary xray instance to do the real protocol handshake, so it bypasses the broken address formatter and should correctly report the outbound as alive.
Could you confirm that using HTTP mode resolves the false-negative for you?
@mcroff88 commented on GitHub (Jun 1, 2026):
Yep, switching to http works great, thank you!