From 70234975d11b5f36ff2264c28c40230912d08036 Mon Sep 17 00:00:00 2001 From: Mikhail Korotov <55493615+millb@users.noreply.github.com> Date: Thu, 10 Oct 2019 16:13:44 +0300 Subject: [PATCH] Delete StorageOfAllowedURL.h --- dbms/src/Common/StorageOfAllowedURL.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 dbms/src/Common/StorageOfAllowedURL.h 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); -}; -}