|
|
@ -183,8 +183,7 @@ public class TomcatWebServerFactoryCustomizer
|
|
|
|
if (StringUtils.hasLength(remoteIpHeader)) {
|
|
|
|
if (StringUtils.hasLength(remoteIpHeader)) {
|
|
|
|
valve.setRemoteIpHeader(remoteIpHeader);
|
|
|
|
valve.setRemoteIpHeader(remoteIpHeader);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// The internal proxies default to a white list of "safe" internal IP
|
|
|
|
// The internal proxies default to a list of "safe" internal IP addresses
|
|
|
|
// addresses
|
|
|
|
|
|
|
|
valve.setInternalProxies(remoteIpProperties.getInternalProxies());
|
|
|
|
valve.setInternalProxies(remoteIpProperties.getInternalProxies());
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
valve.setHostHeader(remoteIpProperties.getHostHeader());
|
|
|
|
valve.setHostHeader(remoteIpProperties.getHostHeader());
|
|
|
|