Skip to content

Commit

Permalink
uv_tcp_getpeername
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Jan 20, 2019
1 parent 681d58e commit a7e090b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ void socket_dump_error_info(const char *title, struct socket_ctx *socket) {
} else {
union sockaddr_universal tmp;
int len = sizeof(tmp);
uv_tcp_getsockname(&socket->handle.tcp, &tmp.addr, &len);
uv_tcp_getpeername(&socket->handle.tcp, &tmp.addr, &len);
universal_address_to_string(&tmp, addr, sizeof(addr));
from = "_client_";
}
Expand Down

0 comments on commit a7e090b

Please sign in to comment.