cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1451 --interface and IPv6 URL address mismatch

From: Patrick MONNERAT <monnerat_at_users.sf.net>
Date: Tue, 16 Dec 2014 12:56:35 +0000

Just pushed an update that should fix this issue.

https://github.com/bagder/curl/commit/9081014c2c467077723d5ae1d0081003b3eb3504

Please try. Thanks.

---
** [bugs:#1451] --interface and IPv6 URL address mismatch**
**Status:** closed-fixed
**Labels:** ipv6 CURLOPT_INTERFACE connections 
**Created:** Thu Nov 13, 2014 08:29 AM UTC by Daniel Stenberg
**Last Updated:** Tue Dec 16, 2014 12:55 PM UTC
**Owner:** Daniel Stenberg
When using --interface [local interface] an (numerical) IPv6 address in the URL, curl will bind the local end first to the interface which very well can be IPv4 and then it tries to connect to the IPv6 host. This makes the connect to never connect.
Example:
     curl --interface eth1 http://[2a00:1a28:1200:9::2]/ -v
Binding to the correct IP version is tricky as this probably also happens if the URL just resolves to an IPv6 host. We should investigate changing how the local binding is done. At the very least, we should detect the mismatch at run-time and bail out instead of trying to do something that simply never will work.
Reported-by: John Jemiolo
Bug report originally posted here: http://curl.haxx.se/mail/archive-2014-11/0018.html
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-12-16

These mail archives are generated by hypermail.