Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1fe1aa89
Commit
1fe1aa89
authored
May 19, 2015
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RemoteIpValve’s default internal proxies to include 172.16/12
Closes gh-2699
parent
5e4a7456
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ServerProperties.java
...ingframework/boot/autoconfigure/web/ServerProperties.java
+4
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+4
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
View file @
1fe1aa89
...
@@ -294,7 +294,10 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord
...
@@ -294,7 +294,10 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord
private
String
internalProxies
=
"10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|"
// 10/8
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
+
"192\\.168\\.\\d{1,3}\\.\\d{1,3}|"
// 192.168/16
+
"169\\.254\\.\\d{1,3}\\.\\d{1,3}|"
// 169.254/16
+
"169\\.254\\.\\d{1,3}\\.\\d{1,3}|"
// 169.254/16
+
"127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"
;
// 127/8
+
"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}"
;
/**
/**
* Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
* Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
1fe1aa89
...
@@ -83,7 +83,10 @@ content into your application; rather pick only the properties that you need.
...
@@ -83,7 +83,10 @@ content into your application; rather pick only the properties that you need.
server.tomcat.internal-proxies=10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\
server.tomcat.internal-proxies=10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\
192\\.168\\.\\d{1,3}\\.\\d{1,3}|\\
192\\.168\\.\\d{1,3}\\.\\d{1,3}|\\
169\\.254\\.\\d{1,3}\\.\\d{1,3}|\\
169\\.254\\.\\d{1,3}\\.\\d{1,3}|\\
127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3} # regular expression matching trusted IP addresses
127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\
172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\
172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\
172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3} # regular expression matching trusted IP addresses
server.tomcat.protocol-header=x-forwarded-proto # front end proxy forward header
server.tomcat.protocol-header=x-forwarded-proto # front end proxy forward header
server.tomcat.port-header= # front end proxy port header
server.tomcat.port-header= # front end proxy port header
server.tomcat.remote-ip-header=x-forwarded-for
server.tomcat.remote-ip-header=x-forwarded-for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment