hiddify-next icon indicating copy to clipboard operation
hiddify-next copied to clipboard

Add support for routing rules in Hiddify configuration

Open web-studio-51 opened this issue 1 year ago • 1 comments

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 avatar May 14 '24 07:05 web-studio-51

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!

web-studio-51 avatar May 14 '24 07:05 web-studio-51

duplicate issue https://github.com/hiddify/hiddify-next/issues/904

TitanComputer avatar Sep 08 '24 16:09 TitanComputer