|
|
|
@ -270,7 +270,7 @@ public class ServerProperties {
|
|
|
|
|
private final Accesslog accesslog = new Accesslog();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Regular expression matching trusted IP addresses.
|
|
|
|
|
* Regular expression that matches proxies that are to be trusted.
|
|
|
|
|
*/
|
|
|
|
|
private String internalProxies = "10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|" // 10/8
|
|
|
|
|
+ "192\\.168\\.\\d{1,3}\\.\\d{1,3}|" // 192.168/16
|
|
|
|
@ -278,7 +278,8 @@ public class ServerProperties {
|
|
|
|
|
+ "127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|" // 127/8
|
|
|
|
|
+ "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\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}";
|
|
|
|
|
+ "172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|" //
|
|
|
|
|
+ "0:0:0:0:0:0:0:1|::1";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
|
|
|
|
|