Files
3m-ui/backend/internal/node
Z User 233d8067f1 fix(ci): VMess URI host field only set when explicitly configured
The CDN access fix (b317042) added a fallback that set the VMess
'host' field from the server address when no ws Host header or SNI
was configured. This broke TestVMessURIOmitsWebSocketHostWhenUnset
which correctly asserts that v2rayN's VmessQRCode schema has no
'host' field — the server address goes in 'add', not 'host'.

Fix: only set obj["host"] from:
  1. Explicit ws-headers Host (user configured)
  2. SNI/servername (TLS config)
Never from the server address (that's what 'add' is for).

Tests: 24/24 packages PASS (including all 4 VMess URI tests).
2026-09-30 12:37:34 +00:00
..
2026-08-19 12:49:36 +08:00