We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71239b4 commit 2b1023fCopy full SHA for 2b1023f
src/net/http/httputil/reverseproxy.go
@@ -24,6 +24,13 @@ import (
24
// ReverseProxy is an HTTP Handler that takes an incoming request and
25
// sends it to another server, proxying the response back to the
26
// client.
27
+// ReverseProxy automatically sets the client IP as value of the
28
+// X-Forwarded-For header.
29
+// If a X-Forwarded-For header already exists, the client IP is
30
+// appended to existing values.
31
+// To prevent IP spoofing, be sure to delete any pre-existing
32
+// X-Forwarded-For header comming from the client or
33
+// an untrusted proxy.
34
type ReverseProxy struct {
35
// Director must be a function which modifies
36
// the request into a new request to be sent
0 commit comments