diff --git a/src/cg3protocol.cpp b/src/cg3protocol.cpp index 84d22c0..0841713 100755 --- a/src/cg3protocol.cpp +++ b/src/cg3protocol.cpp @@ -59,14 +59,14 @@ bool CG3Protocol::Init(void) m_ReflectorCallsign.PatchCallsign(0, (const uint8 *)"XLX", 3); // create our DV socket - ok &= m_Socket.Open(G3_DV_PORT); + ok &= m_Socket.Open(G3_DV_PORT, AF_INET); if ( !ok ) { std::cout << "Error opening socket on port UDP" << G3_DV_PORT << " on ip " << g_Reflector.GetListenIp() << std::endl; } //create helper sockets - ok &= m_PresenceSocket.Open(G3_PRESENCE_PORT); + ok &= m_PresenceSocket.Open(G3_PRESENCE_PORT, AF_INET); if ( !ok ) { std::cout << "Error opening socket on port UDP" << G3_PRESENCE_PORT << " on ip " << g_Reflector.GetListenIp() << std::endl; diff --git a/src/cudpmsgsocket.cpp b/src/cudpmsgsocket.cpp index 2aa0bb3..374a663 100644 --- a/src/cudpmsgsocket.cpp +++ b/src/cudpmsgsocket.cpp @@ -38,7 +38,7 @@ bool CUdpMsgSocket::Open(uint16 uiPort) struct sockaddr_storage *ss; socklen_t ss_len; - if ( !CUdpSocket::Open(uiPort) ) + if ( !CUdpSocket::Open(uiPort, AF_INET) ) { return false; }