mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-09-22 02:56:31 -04:00
TRUSTED_PROXY=192.168.1.1 is ignored and only 192.168.1.1/32 is honoured. checkCIDR() splits the range on the slash and rejects the value when the mask part is missing, so an address written without a subnet never matches. An address without a subnet is now read as a single host: /32 for IPv4 and /128 for IPv6. That is the format docs/en/admins/09_AccessControl.md points at. Host names such as gateway.localdomain are still not resolved. tests/app/Utils/httpUtilTest.php gains 16 cases for checkCIDR, two of which fail without this change. Refs #9210