revolt
revolt copied to clipboard
Proxy/VPN Supprt
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: 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.
I think slipping an example to the install docs would be enough for now.
Here is the upstream bug requesting adding API to WebKitGTK+ to set a proxy https://bugs.webkit.org/show_bug.cgi?id=128674
@clopez Thanks for the pointer, I'll keep an eye on the upstream bug.
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.
The new API is already available in the 2.15.3 development release :tada: