| 154 | return false; |
| 155 | } |
| 156 | bool ban(const CNetAddr& net_addr, int64_t ban_time_offset) override |
| 157 | { |
| 158 | if (m_context->banman) { |
| 159 | m_context->banman->Ban(net_addr, ban_time_offset); |
| 160 | return true; |
| 161 | } |
| 162 | return false; |
| 163 | } |
| 164 | bool unban(const CSubNet& ip) override |
| 165 | { |
| 166 | if (m_context->banman) { |