v14: IP-based proxies (Hysteria2) cannot be used on a Direct + Fake domain anymore (worked in v12)
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
- 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_ipsinpanel/domain_rules.py). Expected, since the DNS does not point at the server. - 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()inpanel/commercial/restapi/v2/admin/domains_page_api.py, which allows them only for Direct/Relay + Valid. - The proxy's
domain_modescannot be changed for IP-based proxies in the proxy editor (the field is hidden whenisIpBased), though the backend acceptsdirect-fakefor 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).