Hiddify-Manager icon indicating copy to clipboard operation
Hiddify-Manager copied to clipboard

v14: IP-based proxies (Hysteria2) cannot be used on a Direct + Fake domain anymore (worked in v12)

Open saeed-jalilian opened this issue 1 month ago • 0 comments

Version: panel 14.0.2 (upgraded from 12.0.0)

What worked in v12

A domain set to Direct + Fake TLS (decoy name, e.g. a site on the same hosting network) with the Hysteria2 custom proxy selected, and "Force configs to use these IPs" set to the server IP. The domain's own DNS does not point at the server (it is someone else's site, used only as the visible name).

What happens in v14.0.2

  1. With Valid TLS, saving fails with: Domain IP=<its real IP> is not matched with your ip=<server ip>, which is required in direct mode (_check_domain_ips in panel/domain_rules.py). Expected, since the DNS does not point at the server.
  2. With Fake, IP-based proxies (Hysteria, Hysteria2, TUIC, ...) are no longer offered in the domain's custom proxy list, and are dropped on save. This comes from ip_based_allowed() in panel/commercial/restapi/v2/admin/domains_page_api.py, which allows them only for Direct/Relay + Valid.
  3. The proxy's domain_modes cannot be changed for IP-based proxies in the proxy editor (the field is hidden when isIpBased), though the backend accepts direct-fake for them.

So a decoy-name setup that worked in v12 has no way to be recreated in v14.

Suggestion

Allow IP-based proxies on Direct + Fake domains (they already ignore the domain's TLS and connect by address:port), as long as the proxy lists direct-fake in its domain modes, and show that field in the editor for IP-based proxies. A patch is on a fork: saeed-jalilian/hiddifypanel branch boundless/v14.0.2 (commit "feat(domains): offer IP-based custom proxies on direct fake domains"). I can open a PR for the change if the maintainers agree with the direction.

Related

  • A separate fix for which certificate IP-based proxies share: hiddify/hiddifypanel#51.
  • #5567 looks related (QUIC proxies and fake-domain certificates).

saeed-jalilian avatar Oct 20 '26 03:10 saeed-jalilian