-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: adds
trustReservedSubnets(array $trustedHeaders = [])
This patch adds a new name constructor, `trustReservedSubnets()`, which takes an optional argument, `$trustedHeaders`. Internally, it calls `trustProxies()` with the following list: - 10.0.0.0/8 (class-a subnet) - 127.0.0.0/8 (localhost addresses) - 172.16.0.0/12 (class-b subnet) - 192.168.0.0/16 (class-c subnet) - ::1/128 (ipv6 localhost) - fc00::/7 (ipv6 private networks) - fe80::/10 (ipv6 local-link addresses) Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
- Loading branch information
1 parent
9429abb
commit dcaf760
Showing
2 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters