| 158 | } |
| 159 | |
| 160 | void SetReachable(enum Network net, bool fFlag) { |
| 161 | LOCK(cs_mapLocalHost); |
| 162 | vfReachable[net] = fFlag; |
| 163 | if (net == NET_IPV6 && fFlag) |
| 164 | vfReachable[NET_IPV4] = true; |
| 165 | } |
| 166 | |
| 167 | // learn a new local address |
| 168 | bool AddLocal(const CService& addr, int32_t nScore) { |