MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / checkURL

Method checkURL

src/Common/RemoteHostFilter.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void 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
24void RemoteHostFilter::checkHostAndPort(const std::string & host, const std::string & port) const
25{

Callers 15

StorageURLClusterMethod · 0.80
StorageURLMethod · 0.80
StorageHiveMethod · 0.80
lazyInitializeMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
callImplMethod · 0.80

Calls 5

getHostMethod · 0.80
toStringFunction · 0.70
ExceptionClass · 0.70
getPortMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected