MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Clear

Method Clear

core/init/auth/ip_tracker.go:122–127  ·  view source on GitHub ↗
(ip string)

Source from the content-addressed store, hash-verified

120}
121
122func (t *IPTracker) Clear(ip string) {
123 t.mu.Lock()
124 defer t.mu.Unlock()
125
126 t.removeIPUnsafe(ip)
127}
128
129func (t *IPTracker) removeIPUnsafe(ip string) {
130 delete(t.records, ip)

Callers

nothing calls this directly

Calls 1

removeIPUnsafeMethod · 0.95

Tested by

no test coverage detected