MCPcopy
hub / github.com/perkeep/perkeep / IsLocalhost

Function IsLocalhost

pkg/auth/auth.go:335–337  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

333}
334
335func IsLocalhost(req *http.Request) bool {
336 return httputil.IsLocalhost(req)
337}
338
339// AllowedWithAuth returns whether the given request
340// has access to perform all the operations in op

Callers

nothing calls this directly

Calls 1

IsLocalhostFunction · 0.92

Tested by

no test coverage detected