check whether a given address is potentially local */
| 333 | |
| 334 | /** check whether a given address is potentially local */ |
| 335 | bool IsLocal(const CService& addr) |
| 336 | { |
| 337 | LOCK(g_maplocalhost_mutex); |
| 338 | return mapLocalHost.contains(addr); |
| 339 | } |
| 340 | |
| 341 | bool CConnman::AlreadyConnectedToHost(std::string_view host) const |
| 342 | { |