Changes IP address include to use Drupal's built-in ip_address() function which pays attention to Varnish proxies.