Fixing IP address when coming from a proxy