MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isKnownAuthFile

Method isKnownAuthFile

internal/watcher/events.go:151–157  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

149}
150
151func (w *Watcher) isKnownAuthFile(path string) bool {
152 normalized := w.normalizeAuthPath(path)
153 w.clientsMutex.RLock()
154 defer w.clientsMutex.RUnlock()
155 _, ok := w.lastAuthHashes[normalized]
156 return ok
157}
158
159func (w *Watcher) normalizeAuthPath(path string) string {
160 trimmed := strings.TrimSpace(path)

Callers 1

handleEventMethod · 0.95

Calls 1

normalizeAuthPathMethod · 0.95

Tested by

no test coverage detected