Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Feb 11, 2024
1 parent 5081321 commit 42407bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions interceptors/realip/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ import "net/netip"
type options struct {
// trustedPeers is a list of trusted peers network prefixes.
trustedPeers []netip.Prefix

// trustedProxies is a list of trusted proxies network prefixes.
// The first rightmost non-matching IP when going through X-Forwarded-For is considered the client IP.
trustedProxies []netip.Prefix

// trustedProxiesCount specifies the number of proxies in front that may append X-Forwarded-For.
// It defaults to 0.
trustedProxiesCount uint

// headers specifies the headers to use in real IP extraction when the request is from a trusted peer.
headers []string
}
Expand Down

0 comments on commit 42407bd

Please sign in to comment.