mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-05 19:51:38 -05:00
363a7a257e
trusted_proxy took one IP address, compared for equality with the connection's peer. Behind the nginx of a Docker Swarm overlay network (CapRover and other Swarm-based platforms) the proxy's address changes when its container is recreated, so from then on X-Forwarded-For was silently ignored and every client counted as the proxy's one address. trusted_proxy now also takes a range (10.0.0.0/8, fd00::/8), checked against the connection's peer; one address keeps working as before, so existing settings are unchanged. Fixes #2854