package store // Banned reports whether a jail (fail2ban or Urutau's own) currently bans the // address, according to the ban and unban lines this instance has read. func (s *Store) Banned(ip string) bool { s.mu.RLock() defer s.mu.RUnlock() r := s.ips[KeyOf(ip)] return r != nil && len(r.Jails) > 0 }