Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2019 at 17:00 UTC
Updated:
14 Dec 2022 at 17:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
o'briatComment #7
anybodyJust ran into this. I only found this Drupal 7 issue: #2466417: Add network range support for reverse_proxy_address in ip_address(), but no documentation for Drupal 8 / 9 if it's allowed to specify a network here.
Is it possible to add further examples with this patch? Is it for example allowed to add the network CIDR notation in the array to be able to define multiple networks allowed?
Examples say more than 1000 words, but the current comment and code is too short for all typical cases I think?
So finally I'm also unsure what's allowed and what's not.
Comment #8
anybodyAlso see #3017957: Improve documentation for (unused) trusted proxy headers
Comment #9
anybodyOk here are my (Drupal 8.9) results:
This works (array notation):
This works (array notation):
This does NOT work (string):
Comment #14
mfbIncorporated the above suggestions into a patch; also clarifying the issue title.
Comment #15
joachim commentedLGTM.
Comment #17
longwaveI double checked and the CIDR range syntax has been available in Symfony since 2.3, so this is good to go into all active branches. Thanks for improving the docs!
Committed and pushed e9e78219c4 to 10.1.x and e72d43c884 to 10.0.x and f3039556ae to 9.5.x. Thanks!