File tree Expand file tree Collapse file tree
main/java/dev/aikido/agent_api/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public BlockedResult isIpBlocked(String ip) {
9797 // Check for allowed ip addresses (i.e. only one country is allowed to visit the site)
9898 // Always allow access from private IP addresses (those include local IP addresses)
9999 if (!isPrivateIp (ip ) && !firewallLists .matchesAllowedIps (ip )) {
100- return new BlockedResult (true , "not in allowlist " );
100+ return new BlockedResult (true , "not allowed " );
101101 }
102102
103103 // Check for monitored IP addresses
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void testReport_ipNotAllowedUsingLists() {
157157 contextObject .setIp ("4.4.4.4" );
158158 response = WebRequestCollector .report (contextObject );
159159 assertNotNull (response );
160- assertEquals ("Your IP address is blocked. Reason: not in allowlist (Your IP: 4.4.4.4)" , response .msg ());
160+ assertEquals ("Your IP address is blocked. Reason: not allowed (Your IP: 4.4.4.4)" , response .msg ());
161161 assertEquals (403 , response .status ());
162162 }
163163
You can’t perform that action at this time.
0 commit comments