mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 22:32:26 +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.
|
||||
|
||||
The `TrustedProxies` slice on your `gin.Engine` specifes the clients
|
||||
truest to specify unspoofed client IP headers. Proxies can be specified
|
||||
as IP's, CIDR's, or hostnames. Hostnames are resolved on each query,
|
||||
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.
|
||||
trusted to specify unspoofed client IP headers. Proxies can be specified
|
||||
as IPs or CIDRs.
|
||||
|
||||
```go
|
||||
import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user