diff --git a/proxy/include/proxy/proxy_server.hpp b/proxy/include/proxy/proxy_server.hpp index 750d1e6ee..eea21b10d 100644 --- a/proxy/include/proxy/proxy_server.hpp +++ b/proxy/include/proxy/proxy_server.hpp @@ -4550,14 +4550,15 @@ R"x*x*x( { for (auto& l : local_info) { - if (l.starts_with(region)) + if (l == region) { allow.emplace(true); break; } + allow.emplace(false); } - if (allow) + if (allow && *allow) break; } @@ -4567,14 +4568,15 @@ R"x*x*x( { for (auto& l : local_info) { - if (l.starts_with(region)) + if (l == region) { allow.emplace(false); break; } + allow.emplace(true); } - if (allow) + if (allow && !*allow) break; } }