v13: QUIC inbounds bind self-signed fake-domain cert while subscription emits real-domain SNI without insecure/pin — all hysteria/hysteria2/tuic nodes unusable

Author: EricPrometheusCreated Sep 27, 2026Updated Sep 27, 2026

Environment

  • Hiddify-Manager 13.0.3 (auto-upgraded overnight), Ubuntu 22.04
  • Panel has a real domain (Let's Encrypt) + a camouflage fake domain (mode=reality) registered

Symptom

After the 13.0.3 upgrade + config re-apply, every QUIC-family node (hysteria, hysteria2, tuic on their direct UDP ports) is unusable from cert-verifying clients:

  • Server side: generated/hiddify-core.json hysteria/hysteria2/tuic inbounds embed the self-signed fake-domain cert (e.g. server_name: <fake-cdn-domain>), regenerated identically on every re-apply (not a one-off timing race).
  • Subscription side: URI links for the same nodes emit sni=<real-domain> with no insecure=1 and no pinnedPeerCertSha256 (the sublink templates only add those when shared_cert.is_trusted is false / mode Fake — but the link path resolves the real domain cert while the inbound binding path uses the fake cert).
  • Client result: CRYPTO_ERROR 0x12a: tls: failed to verify certificate: x509: certificate signed by unknown authority.

Workaround

Removing the fake domain from the panel makes QUIC inbounds fall back to the real cert → nodes work again (verified: hysteria2 60ms).

Additional observation

The TUIC inbound in the same generated config has no tls.alpn (the shared tls template skips alpn for proto in [hysteria, tuic]), so TUIC v5 clients fail with CRYPTO_ERROR 0x178: tls: server did not select an ALPN protocol — unfixable client-side.

Suggested fix

Either bind QUIC inbounds to the trusted domain cert when one exists (prefer it over the fake-domain cert), or make the subscription links follow the cert actually served by those inbounds (same shared_cert source for both, emitting matching SNI + insecure/pin when self-signed). For TUIC please emit alpn: [h3].

Thanks!