Files
3x-ui/web/assets
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
..
2025-10-02 01:47:12 +02:00
2025-10-02 01:47:12 +02:00
2025-10-02 01:47:12 +02:00
2025-10-02 01:47:12 +02:00
2024-04-17 16:02:03 +03:30
2024-04-01 10:38:22 +03:30
2023-02-09 22:48:06 +03:30
2024-04-17 16:07:07 +03:30
2025-08-12 12:56:49 +02:00