| 230 | } |
| 231 | |
| 232 | void SetReachable(enum Network net, bool fFlag) |
| 233 | { |
| 234 | LOCK(cs_mapLocalHost); |
| 235 | vfReachable[net] = fFlag; |
| 236 | if (net == NET_IPV6 && fFlag) |
| 237 | vfReachable[NET_IPV4] = true; |
| 238 | } |
| 239 | |
| 240 | // learn a new local address |
| 241 | bool AddLocal(const CService& addr, int nScore) |