-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"node server" bahind a corporate web proxy #4
Comments
Botgram currently doesn't support proxying. But apparently it wouldn't be very difficult to add, using this module. If you want to try it, -var bot = botgram(config.authToken);
+var bot = botgram(config.authToken, { agent: new (require('https-proxy-agent'))(process.env.https_proxy) }); And the following in - var bot = botgram(token);
+ var bot = botgram(token, { agent: new (require('https-proxy-agent'))(process.env.https_proxy) }); |
you are a genius!! Thank you so much |
Glad it worked :) |
socks5 proxy: var bot = botgram(config.authToken,
{agent: new (require('socks5-https-client/lib/Agent'))(
{"socksHost": "proxy_host",
"socksUsername": "user",
"socksPassword": "password",
"socksPort": 1080})
}); |
|
It'd be ideal if the bot could inherit proxy settings from the |
Hi!,
I'm getting the following error and I guess is because its trying to do a direct connection instead of using the https_proxy,
Couldn't load the configuration file, starting the wizard.
First, enter your bot API token: xxxxxxxxxx
NetworkError: Error: connect ECONNREFUSED 149.154.167.220:443
Any idea?
The text was updated successfully, but these errors were encountered: