This commit is contained in:
Shivaram Lingamneni 2019-11-18 17:21:28 -05:00
parent 5cce365092
commit babd8b1da9
1 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,9 @@ func (dm *DLineManager) RemoveIP(addr net.IP) error {
// CheckIP returns whether or not an IP address was banned, and how long it is banned for.
func (dm *DLineManager) CheckIP(addr net.IP) (isBanned bool, info IPBanInfo) {
addr = addr.To16() // almost certainly unnecessary
if addr.IsLoopback() {
return // #671
}
dm.RLock()
defer dm.RUnlock()