Align proxies with defaults from Tomcat 10.1.40
See gh-45084
This commit is contained in:
parent
8670c6c30f
commit
c9b8470255
|
@ -1039,7 +1039,10 @@ public class ServerProperties {
|
||||||
+ "172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "0:0:0:0:0:0:0:1|::1";
|
+ "0:0:0:0:0:0:0:1|" // 0:0:0:0:0:0:0:1
|
||||||
|
+ "::1|" // ::1
|
||||||
|
+ "fe[89ab]\\p{XDigit}:.*|" //
|
||||||
|
+ "f[cd]\\p{XDigit}{2}+:.*";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
|
* Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
|
||||||
|
|
|
@ -379,7 +379,10 @@ class TomcatWebServerFactoryCustomizerTests {
|
||||||
+ "172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
+ "172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|" // 172.16/12
|
||||||
+ "0:0:0:0:0:0:0:1|::1";
|
+ "0:0:0:0:0:0:0:1|" // 0:0:0:0:0:0:0:1
|
||||||
|
+ "::1|" // ::1
|
||||||
|
+ "fe[89ab]\\p{XDigit}:.*|" //
|
||||||
|
+ "f[cd]\\p{XDigit}{2}+:.*";
|
||||||
assertThat(remoteIpValve.getInternalProxies()).isEqualTo(expectedInternalProxies);
|
assertThat(remoteIpValve.getInternalProxies()).isEqualTo(expectedInternalProxies);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue