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

Function WithTrustedProxies

pkg/rpcserver/rpcserver.go:107–111  ·  view source on GitHub ↗

WithTrustedProxies adds trusted proxies from which proxy headers are trusted.

(cidrs ...string)

Source from the content-addressed store, hash-verified

105
106// WithTrustedProxies adds trusted proxies from which proxy headers are trusted.
107func WithTrustedProxies(cidrs ...string) Option {
108 return func(o *options) {
109 o.trustedProxies = append(o.trustedProxies, cidrs...)
110 }
111}
112
113// WithLogIgnoreMethods sets a list of methods for which no log messages are printed on success.
114func WithLogIgnoreMethods(methods []string) Option {

Callers 1

initGRPCMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected