cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

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

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Thu, 13 Nov 2014 08:29:17 +0000

---
** [bugs:#1451] --interface and IPv6 URL address mismatch**
**Status:** open-confirmed
**Labels:** ipv6 CURLOPT_INTERFACE connections 
**Created:** Thu Nov 13, 2014 08:29 AM UTC by Daniel Stenberg
**Last Updated:** Thu Nov 13, 2014 08:29 AM 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-11-13

These mail archives are generated by hypermail.