cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
360 stars 38 forks source link

Support socks5/http proxy for desktop client #131

Open BLumia opened 1 year ago

BLumia commented 1 year ago

Describe the problem

In some case user might need a proxy to access a certain homeserver. It could be useful if it could have built-in socks5 and/or http proxy support for Cinny desktop client.

Describe the solution you'd like

Add a proxy setting to the desktop client, and ensure the proxy setting can be accessed before login any account.

Alternatives considered

If in-app proxy setting is not possible, add a commandline argument to make it able to use a proxy is still okay.

Additional context

I don't know so much about front-end development and Tauri, so not sure if it's possible.

This issue might be related: https://github.com/tauri-apps/wry/issues/588

BLumia commented 1 year ago

Oh sorry I just realized I should probably open this issue in cinnyapp/cinny-desktop instead of cinnyapp/cinny. If you cannot transfer this issue to that repo, please feel free to let me know if I should close this one and create a new one in that repo. Thanks!

ghost commented 1 month ago

I include the following details as a stopgap workaround until a decision is made by the developers.

On some systems - mine included - the environmental variables HTTP_PROXY and HTTPS_PROXY influence how Cinny performs lookups.

I tested the following to identify whether it had any impact: from a Linux command-line:

HTTP_PROXY=socks5://1.2.3.4:1234 HTTPS_PROXY=$HTTP_PROXY cinny;

Cinny could no longer connect to any matrix home servers. If you verify that the above holds true for yourself, then you can edit it to use a proxy of your choosing.