getsockname() reported local port and remote address - changed to local address.
This commit is contained in:
parent
5cecf2d6ee
commit
894fa0520e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ int getsockname(int fd, struct sockaddr *_RESTRICT address,
|
|||
*/
|
||||
memset(&sin, '\0', sizeof(sin));
|
||||
sin.sin_family= AF_INET;
|
||||
sin.sin_addr.s_addr= tcpconf.nwtc_remaddr ;
|
||||
sin.sin_addr.s_addr= tcpconf.nwtc_locaddr ;
|
||||
sin.sin_port= tcpconf.nwtc_locport;
|
||||
|
||||
len= *address_len;
|
||||
|
|
Loading…
Reference in a new issue