| 210 | }; // namespace torv3 |
| 211 | |
| 212 | bool CNetAddr::SetSpecial(const std::string& addr) |
| 213 | { |
| 214 | if (!ValidAsCString(addr)) { |
| 215 | return false; |
| 216 | } |
| 217 | |
| 218 | if (SetTor(addr)) { |
| 219 | return true; |
| 220 | } |
| 221 | |
| 222 | if (SetI2P(addr)) { |
| 223 | return true; |
| 224 | } |
| 225 | |
| 226 | return false; |
| 227 | } |
| 228 | |
| 229 | bool CNetAddr::SetTor(const std::string& addr) |
| 230 | { |