From babd8b1da9feb88da21416ceb1d9a3780959e43b Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 18 Nov 2019 17:21:28 -0500 Subject: [PATCH] fix #671 --- irc/dline.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/dline.go b/irc/dline.go index 44adf28f..d22d90b4 100644 --- a/irc/dline.go +++ b/irc/dline.go @@ -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()