curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug: CURLINFO_PRIMARY_IP is empty

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 May 2017 15:02:04 +0200 (CEST)

On Tue, 2 May 2017, D M wrote:

> And it works in curl 7.21.0 on Debian 6. But in new versions of curl we
> receive just empty string from CURLINFO_PRIMARY_IP and don't know which IP
> curl try to use.

Since it wasn't documented nor verified in tests to work like that, nobody
cared for that detail!

> I think much better will be to return IP if only resolving was successful.

I'll volunteer to review all patches that bring this functionality (back). I
think they should include a documentation update and at least one test case.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-05-02