MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithTrustedProxies

Function WithTrustedProxies

pkg/web/web.go:97–101  ·  view source on GitHub ↗

WithTrustedProxies adds trusted proxies from which proxy headers are trusted.

(cidrs ...string)

Source from the content-addressed store, hash-verified

95
96// WithTrustedProxies adds trusted proxies from which proxy headers are trusted.
97func WithTrustedProxies(cidrs ...string) Option {
98 return func(o *options) {
99 o.trustedProxies = append(o.trustedProxies, cidrs...)
100 }
101}
102
103// WithCookieKeys sets the cookie hash key and block key.
104func WithCookieKeys(hashKey, blockKey []byte) Option {

Callers 2

initWebMethod · 0.92
NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected