Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Use system proxy settings instead of Proxy.NO_PROXY as default #44

Open
itmammoth opened this issue Jul 26, 2018 · 0 comments
Open

Use system proxy settings instead of Proxy.NO_PROXY as default #44

itmammoth opened this issue Jul 26, 2018 · 0 comments

Comments

@itmammoth
Copy link

itmammoth commented Jul 26, 2018

When you call the api via the SlackApi object created without Proxy parameter, it tries to open the connection with Proxy.NO_PROXY(means direct connection).

System.setProperty("https.proxyHost","test.proxy.com"); // will be ignored
System.setProperty("https.proxyPort","8081"); // will be ignored
SlackApi api = new SlackApi(WEBHOOK_URL);
api.call(slackMessage); // open connection directly

I think this is not what most developers expect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant