projects
/
BearSSL
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56b0ba
)
Fixed displaying of IPv6 addresses.
author
Thomas Pornin
<pornin@bolet.org>
Sat, 12 Nov 2016 13:43:05 +0000
(14:43 +0100)
committer
Thomas Pornin
<pornin@bolet.org>
Sat, 12 Nov 2016 13:43:05 +0000
(14:43 +0100)
tools/server.c
patch
|
blob
|
history
diff --git
a/tools/server.c
b/tools/server.c
index
89d529b
..
a631982
100644
(file)
--- a/
tools/server.c
+++ b/
tools/server.c
@@
-161,8
+161,8
@@
accept_client(int server_fd, int verbose)
tmp, sizeof tmp);
break;
case AF_INET6:
- name = inet_ntop(AF_INET,
- &((struct sockaddr_in
*)&sa)->sin
_addr,
+ name = inet_ntop(AF_INET
6
,
+ &((struct sockaddr_in
6 *)&sa)->sin6
_addr,
tmp, sizeof tmp);
break;
}