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

Method checkURL

src/Common/RemoteHostFilter.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

StorageS3Method · 0.80
StorageURLMethod · 0.80
IStorageCnchFileMethod · 0.80
StorageHDFSMethod · 0.80
makeRequestInternalMethod · 0.80
HTTPDictionarySourceMethod · 0.80
getFormatSettingsFunction · 0.80

Calls 4

toStringFunction · 0.70
ExceptionClass · 0.70
getPortMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected