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

Function TrustLinkLocal

ip.go:154–158  ·  view source on GitHub ↗

TrustLinkLocal configures if you trust link-local address (default: true).

(v bool)

Source from the content-addressed store, hash-verified

152
153// TrustLinkLocal configures if you trust link-local address (default: true).
154func TrustLinkLocal(v bool) TrustOption {
155 return func(c *ipChecker) {
156 c.trustLinkLocal = v
157 }
158}
159
160// TrustPrivateNet configures if you trust private network address (default: true).
161func TrustPrivateNet(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…