simplex-chat icon indicating copy to clipboard operation
simplex-chat copied to clipboard

Simplex-chat should follow system proxy configuration

Open kheops2713 opened this issue 3 years ago • 5 comments

Starting simplex-chat in a terminal on Linux with the variables https_proxy et http_proxy (also in uppercase) set to a proxy address, it still connects directly to the SMP servers. No possibility of using proxies appears in the help messages so I am assuming this is not implemented.

SMP connection is I guess not technically considered HTTPS, so maybe these specific variables are not the best choice, but it would be great if simplex-chat could somehow follow system proxy configuration for all outbound connections.

kheops2713 avatar May 13 '22 04:05 kheops2713

I think it should be possible to configure it on TCP level. SMP is definitely not HTTP traffic, and most likely it won’t work correctly via HTTP proxy - you need to proxy all TCP traffic

epoberezkin avatar May 13 '22 05:05 epoberezkin

An HTTP proxy that accepts CONNECT should be transparent to any kind of TCP trafic, but of course it needs to allow SMP ports. A support for SOCKS5 would otherwise be great too!

kheops2713 avatar May 13 '22 14:05 kheops2713

I might be terribly wrong, but I think I was always configuring it on the system level, and the application doesn't need to be changed to use proxy... I will review it again.

epoberezkin avatar May 13 '22 19:05 epoberezkin

I also tried setting the all_proxy environment variable, with no effect.

kheops2713 avatar May 13 '22 21:05 kheops2713

Trying to change it via environment variable still puts the responsibility for using proxy on the app, some apps may use it and some would not… I will look into how to configure it on the system level.

epoberezkin avatar May 14 '22 11:05 epoberezkin

It has SOCKS5 proxy support now

epoberezkin avatar Nov 13 '22 10:11 epoberezkin