homeproxy-hiddify/root
Andrevich 7d0f2027b5 generate_client: emit transport host with the correct JSON type per transport
sing-box's HTTP/2 (`http`) transport takes a host ARRAY, while xhttp and
httpupgrade take a single string. The UI's DynamicList (and some share-link
parsers) store http_host as a UCI list, which emitted a JSON array and crashed
hiddify-core on xhttp nodes ("json: cannot unmarshal array into Go value of type
string", #3).

Add a transport_host() helper that coerces the host to the correct shape per
transport at both generate sites. This fixes every input path (UI edit,
share-link, subscription), auto-repairs already-broken `list http_host` configs
on the next regeneration, and preserves HTTP/2 multi-host — without any UI or
migration changes.

Fixes #3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 10:56:50 +04:00
..
etc generate_client: emit transport host with the correct JSON type per transport 2026-06-16 10:56:50 +04:00
usr/share Add outbound interface binding, Direct/Proxy IP checks, YouTube test, Clash API for all routing modes, and zh-cn i18n package 2026-05-25 12:20:08 +04:00