| 116 | } |
| 117 | |
| 118 | bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup) |
| 119 | { |
| 120 | std::string strHost(pszName); |
| 121 | if (strHost.empty()) |
| 122 | return false; |
| 123 | if (strHost.front() == '[' && strHost.back() == ']') { |
| 124 | strHost = strHost.substr(1, strHost.size() - 2); |
| 125 | } |
| 126 | |
| 127 | return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup); |
| 128 | } |
| 129 | |
| 130 | bool LookupHost(const char *pszName, CNetAddr& addr, bool fAllowLookup) |
| 131 | { |