Ability to connect directly to some hosts, bypassing opera proxy
dmitry-j-mikhin opened this issue · 1 comments
dmitry-j-mikhin commented
Some clients were unable to filter the requests they want to forward to the proxy server. One approach is to filter requests on the proxy side. I'm not a golang expert, but I've added a PoC variant of this filtering at dmitry-j-mikhin@11331bc
Snawoot commented
Hello!
It's definitely possible and may be nice to have, but I don't feel like it should be implemented in one piece of software for number of reasons:
- It'll smear responsibility of application and instead doing one thing good it'll do a lot of things bad.
- It'll likely require to implement similar features in similar applications hola-proxy and windscribe-proxy, which is kind of feature duplication. Reasonable way is to have middleware application responsible for contacting upstream proxies of specific vendors and separate one for routing across them (or direct connection).
There are some applications around which expose proxy service forwarding connections to another proxies or directly, specified by PAC script. I think it's a most flexible way to implement routing. Here are few examples:
- https://github.com/emarock/proxy-pac-proxy - JS implementation
- https://github.com/williambailey/pacproxy - Go implementation