hiddify / hiddify-next

Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc. It’s an open-source, secure and ad-free.
https://hiddify.com
Other
12.83k stars 1.19k forks source link

Add support for routing rules in Hiddify configuration #877

Open web-studio-51 opened 1 month ago

web-studio-51 commented 1 month ago

Feature description

I am using Hiddify and I need to route traffic through a VPN only for specific websites. However, I encountered issues when trying to use the routing field in the configuration file.

{ "outbounds": [ { "type": "vless", "tag": "vpn", "server": "XXX", "server_port": XXX, "uuid": "XXX", "packet_encoding": "" }, { "type": "direct", "tag": "direct" } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "domain": [ "chatgpt.com" ], "outboundTag": "vpn" } ] } } decode config: routing: json: unknown field "routing"

web-studio-51 commented 1 month ago

It seems that the current version of Hiddify does not support the routing field, which is necessary for setting up domain-based traffic routing. This feature is crucial for users who want to selectively route traffic through a VPN.

Request:

Please add support for the routing field in Hiddify configuration or provide an alternative method to achieve domain-based traffic routing.

Thank you!