mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:24:08 +03:00
Fixed the --interface option to work with IPv6 connections on glibc
systems supporting getifaddrs(). Also fixed a problem where an IPv6 address could be chosen instead of an IPv4 one for --interface when it involved a name lookup.
This commit is contained in:
parent
5ecff1e4c3
commit
fad3288d20
7 changed files with 132 additions and 63 deletions
|
|
@ -24,7 +24,7 @@
|
|||
***************************************************************************/
|
||||
#include "setup.h"
|
||||
|
||||
extern char *Curl_if2ip(const char *interf, char *buf, int buf_size);
|
||||
extern char *Curl_if2ip(int af, const char *interf, char *buf, int buf_size);
|
||||
|
||||
#ifdef __INTERIX
|
||||
#include <sys/socket.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue