kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

Problem to bypass the default proxy in Windows while connecting to daemon #504

Open TrueXakeP opened 5 years ago

TrueXakeP commented 5 years ago

Hello. Because libproxy have an issue with exclusions in Windows (https://github.com/libproxy/libproxy/issues/96), can I ask to force bypass proxy while connecting to syncthing daemon living at 127.0.0.1? Optionally at least.

While default proxy is set I can't get rid of

Connection to daemon failed. Check your configuration and try again. Error message: Connection through SOCKSv4 server was rejected

Proxy exclusions just not work.

I also want to note that IE forcibly bypasses the proxy when connecting to http://127.0.0.1

Setup: Windows 10 (1809) Syncthing-GTK: v0.9.4.3-win32 and also the 12ffdd644d8c4ee0b71dd75145e5e21fbf437016 Syncthing v1.0.1-rc.1, Windows (64 bit) Syncthing GUI address: 127.0.0.1:8384 or 0.0.0.0:8384 Default proxy is enabled and set to socks=192.168.37.1:9050 Proxy bypass list is sync.tool;localhost;127.0.0.1;127.0.0.1:8384;192.168.37.77;<local>

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"DisableCachingOfSSLPages"=dword:00000000
"IE5_UA_Backup_Flag"="5.0"
"PrivacyAdvanced"=dword:00000001
"SecureProtocols"=dword:00000a80
"CertificateRevocation"=dword:00000001
"User Agent"="Mozilla/4.0 (compatible; MSIE 8.0; Win32)"
"EnableNegotiate"=dword:00000001
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"LockDatabase"=hex(b):6e,71,fa,0f,b4,52,d4,01
"ZonesSecurityUpgrade"=hex:79,81,2c,bf,28,5b,d4,01
"WarnonZoneCrossing"=dword:00000000
"ProxyServer"="socks=192.168.37.1:9050"
"ProxyOverride"="sync.tool;localhost;127.0.0.1;127.0.0.1:8384;192.168.37.77;<local>"
TrueXakeP commented 5 years ago

However, I agree that it should be possible to specify a proxy when connecting to 127.0.0.1 in order to be able to debug the connection to the daemon with the software like Telerik Fiddler.