#1451 --interface and IPv6 URL address mismatch

closed-fixed
5
2014-12-18
2014-11-13
No

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

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2014-12-16

    Patrick Monnerat commited 9081014c2c467 that's supposed to fix this, closing this issue.

     
  • Daniel Stenberg

    Daniel Stenberg - 2014-12-16
    • status: open-confirmed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks