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

Function TrustLoopback

ip.go:147–151  ·  view source on GitHub ↗

TrustLoopback configures if you trust loopback address (default: true).

(v bool)

Source from the content-addressed store, hash-verified

145
146// TrustLoopback configures if you trust loopback address (default: true).
147func TrustLoopback(v bool) TrustOption {
148 return func(c *ipChecker) {
149 c.trustLoopback = v
150 }
151}
152
153// TrustLinkLocal configures if you trust link-local address (default: true).
154func TrustLinkLocal(v bool) 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…