Skip to content

Commit ffc725d

Browse files
authored
Update BrevoRequestParser.php
Regarding official Brevo documentation the IP range for webhook changed https://help.brevo.com/hc/en-us/articles/15127404548498-Brevo-IP-ranges-List-of-publicly-exposed-services
1 parent df58224 commit ffc725d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ protected function getRequestMatcher(): RequestMatcherInterface
3535
return new ChainRequestMatcher([
3636
new MethodRequestMatcher('POST'),
3737
new IsJsonRequestMatcher(),
38-
// https://developers.brevo.com/docs/how-to-use-webhooks#securing-your-webhooks
38+
// https://help.brevo.com/hc/en-us/articles/15127404548498-Brevo-IP-ranges-List-of-publicly-exposed-services
3939
// localhost is added for testing
40-
new IpsRequestMatcher(['185.107.232.1/24', '1.179.112.1/20', '172.246.240.1/20', '127.0.0.1']),
40+
new IpsRequestMatcher(['1.179.112.0/20', '172.246.240.0/20', '127.0.0.1']),
4141
]);
4242
}
4343

0 commit comments

Comments
 (0)