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

fixed appending port 80 if "X-Forwarded-Port" is empty #430

Closed
wants to merge 2 commits into from
Closed

fixed appending port 80 if "X-Forwarded-Port" is empty #430

wants to merge 2 commits into from

Conversation

MarkusChur
Copy link
Contributor

A suggestion to address port handling in ProxyPeerAddressHandler.
See https://issues.jboss.org/browse/UNDERTOW-756

@undertow-pull-request
Copy link

Can one of the admins verify this patch?

if(forwardedPort != null) {
try {
port = Integer.parseInt(forwardedPort);
} catch (NumberFormatException ignore) {
UndertowLogger.REQUEST_LOGGER.debugf("Cannot parse port: %s", forwardedPort);
}
}
String hostHeader = NetworkUtils.formatPossibleIpv6Address(value);
if (port != 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is pretty much always true

@stuartwdouglas
Copy link
Contributor

Squashed and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants