mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4064] [MERGED] Fix hysteria2 Info/QR buttons crashing on echConfigList.join #5591
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#5591
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4064
Author: @pwnnex
Created: 4/21/2026
Status: ✅ Merged
Merged: 4/21/2026
Merged by: @MHSanaei
Base:
main← Head:fix/hysteria-echconfig-join📝 Commits (1)
e800076Fix: hysteria link gen crashes when echConfigList is a string📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
web/assets/js/model/inbound.js(+1 -1)📄 Description
Summary
Closes #4063.
Clicking Info or QR on any hysteria / hysteria2 inbound throws:
Root cause
echConfigListis bound to an<a-input>(single-line string) inweb/html/form/tls_settings.html, and theTlsStreamSettings.Settingsconstructor defaults it to
''. It's a string, not an array.genHysteriaLinkwas the only link generator calling.join(',')onit:
The other three link generators (
genVmessLinkL1608-1610,genVlessLinkL1705-1707,genTrojanLinkL1781-1783) already pass thevalue directly:
URLSearchParams.setstringifies arrays with,on its own, so thesame one-liner works whether the value is a string or an array.
Fix
Align
genHysteriaLinkwith the other three: drop the.join(',')call and pass
echConfigListstraight intoparams.set.One line, no behaviour change for correctly-typed input.
Test plan
valid
hysteria2://…URI (no console exception)echConfigListpopulated still emits anech=…query parameter in the generated link
were already correct)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.