How to Fix Cloudflared Duplicate IPs in X-Forwarded-For Header

How to fix IPs from appearing twice in the X-Forwarded-For and ClientHost headers when using Cloudflared.