Always clear hosts.

This commit is contained in:
Nikolai Kochetov 2022-03-15 14:08:56 +00:00
parent 97aa6c82ce
commit d6710b3354

View File

@ -36,6 +36,8 @@ void RemoteHostFilter::setValuesFromConfig(const Poco::Util::AbstractConfigurati
config.keys("remote_url_allow_hosts", keys);
std::lock_guard guard(hosts_mutex);
primary_hosts.clear();
regexp_hosts.clear();
for (const auto & key : keys)
{