mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Fixed StorageUrl.cpp
This commit is contained in:
parent
9246f258e8
commit
16645bfe53
@ -236,11 +236,10 @@ bool IStorageURLBase::checkHostWhitelist(const std::string & host) {
|
|||||||
{
|
{
|
||||||
if (primary_hosts.find(host) == primary_hosts.end())
|
if (primary_hosts.find(host) == primary_hosts.end())
|
||||||
{
|
{
|
||||||
bool flag = false;
|
for (size_t i = 0; i < regexp_hosts.size(); ++i)
|
||||||
for (size_t i = 0; i < regexp_hosts.size() && !flag; ++i)
|
|
||||||
if (re2::RE2::FullMatch(host, regexp_hosts[i]))
|
if (re2::RE2::FullMatch(host, regexp_hosts[i]))
|
||||||
flag = true;
|
return true;
|
||||||
return flag;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user