| 16 | } |
| 17 | |
| 18 | void RemoteHostFilter::checkURL(const Poco::URI & uri) const |
| 19 | { |
| 20 | if (!checkForDirectEntry(uri.getHost()) && |
| 21 | !checkForDirectEntry(uri.getHost() + ":" + toString(uri.getPort()))) |
| 22 | throw Exception("URL \"" + uri.toString() + "\" is not allowed in config.xml", ErrorCodes::UNACCEPTABLE_URL); |
| 23 | } |
| 24 | |
| 25 | void RemoteHostFilter::checkHostAndPort(const std::string & host, const std::string & port) const |
| 26 | { |
no test coverage detected