| 112 | } |
| 113 | |
| 114 | bool LookupHost(const char* pszName, vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup) { |
| 115 | string strHost(pszName); |
| 116 | if (strHost.empty()) |
| 117 | return false; |
| 118 | if (boost::algorithm::starts_with(strHost, "[") && boost::algorithm::ends_with(strHost, "]")) { |
| 119 | strHost = strHost.substr(1, strHost.size() - 2); |
| 120 | } |
| 121 | |
| 122 | return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup); |
| 123 | } |
| 124 | |
| 125 | bool LookupHost(const char* pszName, CNetAddr& addr, bool fAllowLookup) { |
| 126 | std::vector<CNetAddr> vIP; |
no test coverage detected