diff --git a/dbms/src/Common/StorageOfAllowedURL.h b/dbms/src/Common/StorageOfAllowedURL.h deleted file mode 100644 index 8a4639f4bd4..00000000000 --- a/dbms/src/Common/StorageOfAllowedURL.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include -#include -#include -#include - - -namespace DB -{ -class StorageOfAllowedURL -{ -public: - void checkURL(const Poco::URI &uri); /// If URL not allowed in config.xml throw UNACCEPTABLE_URL Exception - - void setValuesFromConfig(const Poco::Util::AbstractConfiguration &config); - - void checkHostAndPort(const std::string & host, const std::string & port); - -private: - std::unordered_set primary_hosts; /// Allowed primary () URL from config.xml - std::vector regexp_hosts; /// Allowed regexp () URL from config.xml - - bool checkString(const std::string &host); -}; -}