revolt icon indicating copy to clipboard operation
revolt copied to clipboard

Proxy/VPN Supprt

Open indolering opened this issue 9 years ago • 6 comments

Chat apps essentially allow anyone to figure out your home IP address and it would be nice if Revolt supported SOCKS5 or binding to a VPN.

indolering avatar Nov 28 '16 17:11 indolering

@indolering: If you set a proxy in the “Network” panel of GNOME Settings, Revolt will use it. Also, if you configure a VPN there, it will work, too.

I understand that the idea here is to have separate proxy and/or VPN settings for Revolt, without having to change the system-wide settings. One thing that should work without needing changes is setting the $http_proxy environment variable before running the application. For example when using the Flatpak bundle it is possible to add environment variables from the shell like this:

flatpak run --env='http_proxy=http://myproxy:8080' org.perezdecastro.Revolt

One nicer option would be to allow setting the proxy from the application settings, but after a quick look I cannot see any way to tell WebKitGTK+ which proxy to use. Let's leave this issue around and take a deeper look later on.

aperezdc avatar Nov 28 '16 18:11 aperezdc

I think slipping an example to the install docs would be enough for now.

indolering avatar Nov 28 '16 21:11 indolering

Here is the upstream bug requesting adding API to WebKitGTK+ to set a proxy https://bugs.webkit.org/show_bug.cgi?id=128674

clopez avatar Nov 29 '16 20:11 clopez

@clopez Thanks for the pointer, I'll keep an eye on the upstream bug.

aperezdc avatar Nov 30 '16 00:11 aperezdc

The needed code for configuring proxy settings is now in WebKitGTK+, so we can implement this in Revolt after the next stable release. In order to keep Revolt working with older WebKitGTK+ releases we could test at runtime whether the new WebKitNetworkProxySettings is available or not.

aperezdc avatar Jan 19 '17 19:01 aperezdc

The new API is already available in the 2.15.3 development release :tada:

aperezdc avatar Jan 20 '17 08:01 aperezdc