Only update G2 if != INADDR_NONE

This commit is contained in:
Geoffrey Merck F4FXL - KC3FRA 2018-11-19 06:30:48 +01:00
parent a047577506
commit 3968c15c55

View file

@ -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;
}
}