apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.6k stars 1.63k forks source link

[bug report] cannot use acl in server mode with socks5 outbound #596

Open trekGriffin opened 1 year ago

trekGriffin commented 1 year ago

Details

in server mode with socks5 outbound, I can see the log showed that request with [direct], but the traffic still goes to the socks5 outbound, not to the local machine internet.

Value

it would confuse users that if that traffic goes to [direct] or socks5 outbound

Available alternatives

just give the traffic to clash or other socks5 outbound.

Additional information

No response

haruue commented 1 year ago

This should be a feature request. As the acl on the server side is designed to work like this.

And I'd personally recommend using v2fly socks5 inbounds as the "socks_outbound" for Hysteria server, as it comes with routing and sniffing support that can solve most problems.