Skip to content

Commit

Permalink
update so that ip address check uses includes
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Feb 8, 2024
1 parent b174081 commit 147fe68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/app-api/src/handlers/apollo_gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ function ipRestrictionMiddleware(

if (fromThirdPartyAuthorizer) {
const isValidIpAddress =
allowedIps.includes(ipAddress) || allowedIps === 'ALLOW_ALL'
allowedIps.includes(ipAddress) ||
allowedIps.includes('ALLOW_ALL')

if (!isValidIpAddress) {
return Promise.resolve({
Expand Down

0 comments on commit 147fe68

Please sign in to comment.