Fixed problem that caused stats scheduling to break on startup sometimes
Added support for getting public ip from cloudflare proxy