| 265 | } |
| 266 | |
| 267 | void SetReachable(enum Network net, bool fFlag) |
| 268 | { |
| 269 | LOCK(cs_mapLocalHost); |
| 270 | vfReachable[net] = fFlag; |
| 271 | if (net == NET_IPV6 && fFlag) |
| 272 | vfReachable[NET_IPV4] = true; |
| 273 | } |
| 274 | |
| 275 | // learn a new local address |
| 276 | bool AddLocal(const CService& addr, int nScore) |