3x-ui/web
pwnnex 975d6d1bad
Fix: hysteria link gen crashes when echConfigList is a string (#4064)
`genHysteriaLink` was calling `.join(',')` on
`this.stream.tls.settings.echConfigList`, but that field is bound to an
`<a-input>` (single-line string) in `tls_settings.html` and defaults to
`''` in `TlsStreamSettings.Settings`. Calling `.join()` on a string
throws `TypeError: echConfigList.join is not a function`, which breaks
the Info / QR buttons for every hysteria / hysteria2 inbound.

All three sibling link generators (`genVmessLink`, `genVlessLink`,
`genTrojanLink`) already pass the value directly:

    params.set("ech", this.stream.tls.settings.echConfigList)

`URLSearchParams.set` will stringify arrays with `,` on its own, so the
same one-liner works for both string and array inputs. Align
`genHysteriaLink` with the other three.

Fixes #4063

Co-authored-by: pwnnex <eternxles@gmail.com>
2026-04-21 19:05:53 +02:00
..
assets Fix: hysteria link gen crashes when echConfigList is a string (#4064) 2026-04-21 19:05:53 +02:00
controller Centralize session options and adjust cookies 2026-04-20 14:00:18 +02:00
entity Add SSRF protection (#4044) 2026-04-20 00:18:20 +02:00
global Refactor code and fix linter warnings (#3627) 2026-01-05 05:54:56 +01:00
html Reduce observatory probe intervals and timeout 2026-04-21 18:47:38 +02:00
job revert: Disconnect client due to exceeded IP limit (#3948) 2026-04-19 21:52:40 +02:00
locale update dependencies 2026-03-04 13:05:29 +01:00
middleware docs: add comments for all functions 2025-09-20 09:35:50 +02:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
service revert Fix geosite:ru rule (ram leak) 2026-04-21 12:55:16 +02:00
session v2.9.0 2026-04-20 21:43:49 +02:00
translation feat: Add NordVPN NordLynx (WireGuard) integration (#3827) 2026-04-20 00:41:50 +02:00
websocket fix: enhance WebSocket stability, resolve XHTTP configurations and fix UI loading shifts (#3997) 2026-04-19 21:01:00 +02:00
web.go revert Fix geosite:ru rule (ram leak) 2026-04-21 12:55:16 +02:00