MCPcopy Index your code
hub / github.com/labstack/echo / TrustPrivateNet

Function TrustPrivateNet

ip.go:161–165  ·  view source on GitHub ↗

TrustPrivateNet configures if you trust private network address (default: true).

(v bool)

Source from the content-addressed store, hash-verified

159
160// TrustPrivateNet configures if you trust private network address (default: true).
161func TrustPrivateNet(v bool) TrustOption {
162 return func(c *ipChecker) {
163 c.trustPrivateNet = v
164 }
165}
166
167// TrustIPRange add trustable IP ranges using CIDR notation.
168func TrustIPRange(ipRange *net.IPNet) TrustOption {

Callers 5

TestTrustIPRangeFunction · 0.85
TestTrustPrivateNetFunction · 0.85
TestTrustLinkLocalFunction · 0.85
TestTrustLoopbackFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestTrustIPRangeFunction · 0.68
TestTrustPrivateNetFunction · 0.68
TestTrustLinkLocalFunction · 0.68
TestTrustLoopbackFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…