robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
122 stars 12 forks source link

Run behind the Proxy #20

Closed rdnkrkmz closed 1 year ago

rdnkrkmz commented 1 year ago

Is it possible to run behind the corporate proxy. Currently, when run while proxy set, no output given to console.

robvanderleek commented 1 year ago

Hi @rdnkrkmz

I don't have any experience with Node apps and proxy servers. There seems to be a library that would make it quite easy to add proxy support though.

Can you tell me a bit more about your environment and use case? For example, do you have HTTP_PROXY and HTTPS_PROXY environment variables set? Do you need authentication for your proxy?

KR, Rob

rdnkrkmz commented 1 year ago

Hi @robvanderleek First, thank you for your attention.

I have the following config: on command prompt I set proxy as follows: before I set, I could not reach www.google.com.tr

set https_proxy=http://USER:PASS@proxy.server.com.tr:80
set http_proxy=http://USER:PASS@proxy.server.com.tr:80

when I try with curl, I can reach www.google.com.tr

Then I try to login with windows app as follows, but app just waits, netiher output nor etc on the console.

D:\mudslide-win-x64.exe login

create-issue-branch[bot] commented 1 year ago

Branch issue-20-Run_behind_the_Proxy created!

robvanderleek commented 1 year ago

Hi @rdnkrkmz

I've added an option to use a proxy server, please see the Readme.

You need to use the latest release binary for this option: https://github.com/robvanderleek/mudslide/releases/tag/20230308-3

Let me know if this works or not for you.

rdnkrkmz commented 1 year ago

@robvanderleek Thank you for your efforts. It works like a charm...