diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-07-28 18:35:34 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-07-28 18:35:34 +0000 |
commit | bc0ebfcdeb5a063f1753a82a6068871455adac76 (patch) | |
tree | 9e117f8bd69e4debaf030f982298f227a7adfb1b | |
parent | 57d13c770ae32f5f760a7d060003b6d8a58f96bc (diff) |
Fixed display of the interface bind address in the trace output when it's
an IPv6 address.
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/connect.c b/lib/connect.c index 92538fc77..6c736a42c 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -340,9 +340,7 @@ static CURLcode bindlocal(struct connectdata *conn, if(h) { if(in == CURL_INADDR_NONE) /* convert the resolved address, sizeof myhost >= INET_ADDRSTRLEN */ - Curl_inet_ntop(h->addr->ai_addr->sa_family, - &((struct sockaddr_in*)h->addr->ai_addr)->sin_addr, - myhost, sizeof myhost); + Curl_printable_address(h->addr, myhost, sizeof myhost); else /* we know data->set.device is shorter than the myhost array */ strcpy(myhost, dev); |