ExcitedCodes/NaiveGUI

How about add HTTP proxy mode?

Closed this issue · 6 comments

You can refer to Proxy.cs to set HTTP proxy.
And use Clash or Privoxy switch SOCKS5 to HTTP proxy.
Have a good day! ☺

Actually, the NaiveProxy have built-in HTTP proxy support, just use http://addr:port as the listener parameter.
The only shortage is it doesn't support dual proxy protocols on the same port, which we can overcome by setting up multiple listeners.

The original design of NaiveGUI is to setup multiple listeners corresponding to multiple remotes, and the user do the actual proxy stuff using Proxifier, which allows them to select different remote per app/host etc.

And this brings up another question: We have multiple listeners, which one to set as the system proxy? It's hard to decide...

Windows can only accept HTTP proxy.

If you want to bypass some websites, SOCKS5 may be better.

Naive(Socks5) - Clash/Privoxy(HTTP) -> Windows Interface

But proxy all the transfer, just HTTP proxy.

Naive(HTTP) -> Windows Interface

I can't get your point, IMO you can create listeners using http://xxxxx
image

And configure your windows:
image

It's 100% working solution for said scenario (HTTP(S) Proxy).

HTTP

So why not make it automaticly?

HTTP

So why not make it automaticly?

As I mentioned earlier, we have multiple listeners.
To do this automatically, we must create options like "Which one to set as system-wide proxy?", which increases the configuration complexity.
If you really need said function, you may implement it and create PR, I'd be appreciate to merge it.