mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-04 23:39:58 +01:00
Only update G2 if != INADDR_NONE
This commit is contained in:
parent
a047577506
commit
3968c15c55
|
|
@ -1056,8 +1056,9 @@ void CIRCDDBGatewayThread::processG2()
|
|||
|
||||
default:
|
||||
//Probably someone punching a UDP hole to us, keep track of that
|
||||
if(incomingPort > 0 && incomingPort < 65536)
|
||||
if(incomingAddress.s_addr != INADDR_NONE && incomingPort > 0 && incomingPort < 65536)
|
||||
m_cache.updateGatewayG2(wxT(""), incomingAddress, incomingPort);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue