docs(readme): remove old reference to hostnames

... as trusted proxies
This commit is contained in:
Javier Provecho Fernandez 2021-02-09 00:11:27 +01:00 committed by GitHub
parent fc99953b7f
commit 15f576c362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (