diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index ce4ee82..94b4d60 100644 --- a/src/socket.cpp +++ b/src/socket.cpp | |||
@@ -304,7 +304,8 @@ void Bu::Socket::setAddress() | |||
304 | struct sockaddr_in addr; | 304 | struct sockaddr_in addr; |
305 | socklen_t len = sizeof(addr); | 305 | socklen_t len = sizeof(addr); |
306 | addr.sin_family = AF_INET; | 306 | addr.sin_family = AF_INET; |
307 | getsockname( nSocket, (sockaddr *)(&addr), &len ); | 307 | // getsockname( nSocket, (sockaddr *)(&addr), &len ); |
308 | getpeername( nSocket, (sockaddr *)(&addr), &len ); | ||
308 | char buf[150]; | 309 | char buf[150]; |
309 | sprintf( buf, "%s", inet_ntoa( addr.sin_addr ) ); | 310 | sprintf( buf, "%s", inet_ntoa( addr.sin_addr ) ); |
310 | sAddress = buf; | 311 | sAddress = buf; |