SadeghHayeri / GreenTunnel

GreenTunnel is an anti-censorship utility designed to bypass the DPI system that is put in place by various ISPs to block access to certain websites.
MIT License
4.29k stars 273 forks source link

What does GreenTunnel exactly change in my Windows system? #75

Open meness opened 4 years ago

meness commented 4 years ago

Since I have installed GreenTunnel on my Windows, I cannot open some websites if it is turned OFF. Please tell me what GreenTunnel exactly changes in my Windows system then I can roll back to the defaults.

What I have already done so far but didn't work

You might ask, "Are you sure this is about GreenTunnel?". Yes, I'm 100% sure for a couple of reasons.

SadeghHayeri commented 4 years ago

Hi and sorry! GreenTunnel only set windows global http proxy setting (using Windows registry) and unset setting at exit, and you can unset config in proxy settings (or use no proxy in other browsers)

Related code to set proxy configs:

WindowsSystemProxy._asyncRegSet(regKey, 'MigrateProxy', Registry.REG_DWORD, 1),
WindowsSystemProxy._asyncRegSet(regKey, 'ProxyEnable', Registry.REG_DWORD, 1),
WindowsSystemProxy._asyncRegSet(regKey, 'ProxyHttp1.1', Registry.REG_DWORD, 0),
WindowsSystemProxy._asyncRegSet(regKey, 'ProxyServer', Registry.REG_SZ, `${ip}:${port}`),
WindowsSystemProxy._asyncRegSet(regKey, 'ProxyOverride', Registry.REG_SZ, '*.local;<local>'),

Check this link to found how edit Windows registry.