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