mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 14:52:18 +08:00
docs(readme): remove old reference to hostnames
... as trusted proxies
This commit is contained in:
parent
fc99953b7f
commit
15f576c362
@ -2124,11 +2124,8 @@ as well as specifying which proxies (or direct clients) you trust to
|
|||||||
specify one of these headers.
|
specify one of these headers.
|
||||||
|
|
||||||
The `TrustedProxies` slice on your `gin.Engine` specifes the clients
|
The `TrustedProxies` slice on your `gin.Engine` specifes the clients
|
||||||
truest to specify unspoofed client IP headers. Proxies can be specified
|
trusted to specify unspoofed client IP headers. Proxies can be specified
|
||||||
as IP's, CIDR's, or hostnames. Hostnames are resolved on each query,
|
as IPs or CIDRs.
|
||||||
such that changes in your proxy pool take effect immediately. The
|
|
||||||
hostname option is handy, but also costly, so only use if you have no
|
|
||||||
other option.
|
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user