3x-ui/web/assets/js
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
..
model Fix: hysteria link gen crashes when echConfigList is a string (#4064) 2026-04-21 19:05:53 +02:00
util Centralize session options and adjust cookies 2026-04-20 14:00:18 +02:00
axios-init.js Some fixes and improvements (#1997) 2024-03-11 01:01:24 +03:30
subscription.js feat add clash yaml convert (#3916) 2026-04-19 22:26:13 +02:00
websocket.js Enhance WebSocket client connection logic and improve event listener management (#3636) 2026-01-18 15:38:57 +01:00