Skip to content

Commit

Permalink
feature request #141: adapt for win
Browse files Browse the repository at this point in the history
  • Loading branch information
buv authored and pljones committed Apr 26, 2021
1 parent 7d18661 commit 0d593fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "socket.h"
#include "server.h"
#include <arpa/inet.h>


/* Implementation *************************************************************/
Expand Down Expand Up @@ -55,7 +54,7 @@ void CSocket::Init ( const quint16 iPortNumber, const quint16 iQosNumber, const
UdpSocketInAddr.sin_addr.s_addr = INADDR_ANY;
}
else {
UdpSocketInAddr.sin_addr.s_addr = inet_addr(strServerBindIP.toLocal8Bit().data());
UdpSocketInAddr.sin_addr.s_addr = htonl ( QHostAddress( strServerBindIP ).toIPv4Address() );
}

// initialize the listening socket
Expand Down

0 comments on commit 0d593fc

Please sign in to comment.