| 49 | } |
| 50 | |
| 51 | std::string GetNetworkName(enum Network net) { |
| 52 | switch(net) |
| 53 | { |
| 54 | case NET_IPV4: return "ipv4"; |
| 55 | case NET_IPV6: return "ipv6"; |
| 56 | case NET_ONION: return "onion"; |
| 57 | default: return ""; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | bool static LookupIntern(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup) |
| 62 | { |