| 191 | } |
| 192 | |
| 193 | bool LookupHost(const char* pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup) |
| 194 | { |
| 195 | std::string strHost(pszName); |
| 196 | if (strHost.empty()) |
| 197 | return false; |
| 198 | if (boost::algorithm::starts_with(strHost, "[") && boost::algorithm::ends_with(strHost, "]")) { |
| 199 | strHost = strHost.substr(1, strHost.size() - 2); |
| 200 | } |
| 201 | |
| 202 | return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup); |
| 203 | } |
| 204 | |
| 205 | bool Lookup(const char* pszName, std::vector<CService>& vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions) |
| 206 | { |
no test coverage detected