3x-ui/web/assets/js/model
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
..
dbinbound.js add hysteria inbound 2026-04-20 16:05:27 +02:00
inbound.js Fix: hysteria link gen crashes when echConfigList is a string (#4064) 2026-04-21 19:05:53 +02:00
outbound.js kcp : default value maxSendingWindow 2026-04-21 15:00:12 +02:00
reality_targets.js Update reality_targets.js (#3724) 2026-01-31 23:50:29 +01:00
setting.js feat add clash yaml convert (#3916) 2026-04-19 22:26:13 +02:00