package store // KnownHostile reports, cheaply, whether this instance has seen the address // attack it: banned by a jail or scored hostile. Used by the egress analysis // to flag outbound connections to an attacker. func (s *Store) KnownHostile(ip string) bool { s.mu.RLock() defer s.mu.RUnlock() r := s.ips[KeyOf(ip)] return r != nil && (len(r.Jails) > 0 || r.Score >= 50) }