Apply x-forwarded-for ip before logging in source.