made geoip work even for file: protocol