Skip to content

Commit

Permalink
Improve region_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jan 12, 2024
1 parent f7c64c1 commit 3103050
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4550,14 +4550,15 @@ R"x*x*x(<html>
{
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;
}

Expand All @@ -4567,14 +4568,15 @@ R"x*x*x(<html>
{
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;
}
}
Expand Down

0 comments on commit 3103050

Please sign in to comment.