XF has had automatic handling of Cloudflare IPs for a while. Since this was happening prior to using Cloudflare it's likely there's some other server configuration issue at play here.
You may wish to check
admin.php?tools/phpinfofor the values of
Both of those are showing just my IP address.