mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.
This commit is contained in:
parent
6dd4fe0740
commit
1e55ed5c7d
2
CHANGES
2
CHANGES
@ -7,6 +7,8 @@
|
|||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
Daniel (9 March 2007)
|
Daniel (9 March 2007)
|
||||||
|
- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.
|
||||||
|
|
||||||
- Robert A. Monat improved the maketgz and VC6/8 generating to set the correct
|
- Robert A. Monat improved the maketgz and VC6/8 generating to set the correct
|
||||||
machine type too.
|
machine type too.
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ This release includes the following bugfixes:
|
|||||||
used
|
used
|
||||||
o HTTP Digest header parsing fix for unquoted last word ending with CRLF
|
o HTTP Digest header parsing fix for unquoted last word ending with CRLF
|
||||||
o CURLOPT_PORT, HTTP proxy, re-using connections and non-HTTP protocols
|
o CURLOPT_PORT, HTTP proxy, re-using connections and non-HTTP protocols
|
||||||
|
o CURLOPT_INTERFACE for ipv6
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ advice from friends like these:
|
|||||||
Yang Tse, Manfred Schwarb, Michael Wallner, Jeff Pohlmeyer, Shmulik Regev,
|
Yang Tse, Manfred Schwarb, Michael Wallner, Jeff Pohlmeyer, Shmulik Regev,
|
||||||
Rob Crittenden, Robert A. Monat, Dan Fandrich, Duncan Mac-Vicar Prett,
|
Rob Crittenden, Robert A. Monat, Dan Fandrich, Duncan Mac-Vicar Prett,
|
||||||
Michal Marek, Robson Braga Araujo, Ian Turner, Linus Nielsen Feltzing,
|
Michal Marek, Robson Braga Araujo, Ian Turner, Linus Nielsen Feltzing,
|
||||||
Ravi Pratap, Adam D. Moss, Jose Kahan, Hang Kin Lau, Justin Fletcher
|
Ravi Pratap, Adam D. Moss, Jose Kahan, Hang Kin Lau, Justin Fletcher,
|
||||||
|
Robert Iakobashvili
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
@ -233,7 +233,9 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||||||
char myhost[256] = "";
|
char myhost[256] = "";
|
||||||
in_addr_t in;
|
in_addr_t in;
|
||||||
int rc;
|
int rc;
|
||||||
|
char ipv6_addr[16];
|
||||||
bool was_iface = FALSE;
|
bool was_iface = FALSE;
|
||||||
|
int in6 = -1;
|
||||||
|
|
||||||
/* First check if the given name is an IP address */
|
/* First check if the given name is an IP address */
|
||||||
in=inet_addr(data->set.device);
|
in=inet_addr(data->set.device);
|
||||||
@ -314,7 +316,11 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
in=inet_addr(myhost);
|
in=inet_addr(myhost);
|
||||||
if (CURL_INADDR_NONE == in) {
|
|
||||||
|
#ifdef ENABLE_IPV6
|
||||||
|
in6 = inet_pton (AF_INET6, myhost, (void *)&ipv6_addr);
|
||||||
|
#endif
|
||||||
|
if (CURL_INADDR_NONE == in && -1 == in6) {
|
||||||
failf(data,"couldn't find my own IP address (%s)", myhost);
|
failf(data,"couldn't find my own IP address (%s)", myhost);
|
||||||
return CURLE_HTTP_PORT_FAILED;
|
return CURLE_HTTP_PORT_FAILED;
|
||||||
} /* end of inet_addr */
|
} /* end of inet_addr */
|
||||||
|
Loading…
Reference in New Issue
Block a user