Fix sudo affecting ip/last_request_at (with specs)