mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-03-05 04:43:49 +01:00
fix unspecified xlxdip(secondary or later) address as 0.0.0.0
This commit is contained in:
parent
41dcab670a
commit
a90b01549e
|
|
@ -63,7 +63,7 @@ bool CUdpSocket::Open(uint16 uiPort)
|
|||
|
||||
// create socket
|
||||
// (avoid INADDR_ANY on secondary and later IP address)
|
||||
m_Socket[i] = ( i != 0 && m_Ip[i] == CIp() ) ?
|
||||
m_Socket[i] = ( i != 0 && g_Reflector.GetListenIp(i) == CIp() ) ?
|
||||
-1 : socket(ss->ss_family, SOCK_DGRAM, 0);
|
||||
if ( m_Socket[i] != -1 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue