Skip to content
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

Update Netty proxy settings #5071

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Conversation

jansupol
Copy link
Contributor

Allow to pass headers to the proxy
Allow to set proxy using the JDK -Dhttp.proxyHost setting

Signed-off-by: jansupol [email protected]

@jansupol jansupol linked an issue May 27, 2022 that may be closed by this pull request
Allow to pass headers to the proxy
Allow to set proxy using the JDK -Dhttp.proxyHost setting

Signed-off-by: jansupol <[email protected]>
InetSocketAddress proxyAddr = (InetSocketAddress) proxyAddress;
if (proxyAddr.isUnresolved()
&& proxyAddr.getHostName() != null
&& proxyAddr.getHostName().startsWith("http://")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that starts by https?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, JDK does not support HTTPS proxy

Signed-off-by: jansupol <[email protected]>
@senivam senivam merged commit 6abd64c into eclipse-ee4j:master Jun 9, 2022
@senivam senivam added this to the 2.36 milestone Jun 9, 2022
This was referenced Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Netty Connector proxy handler to support JDK's options
3 participants