Fix not being able to have two reflectorx at same address eg XLX under DCS and XRF

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

View file

@ -45,8 +45,10 @@ void CGatewayCache::update(const wxString& gateway, const wxString& address, DST
if(rec == NULL) {
rec = findByAddress(addr_in);//did this gateway punch to us and we do not have a gateway set for it ?
if(rec != NULL && rec->getGateway().empty())
rec->setGateway(gateway);
if(rec != NULL && rec->getGateway().empty() && rec->getProtocol() == protocol)
rec->setGateway(gateway);
else
rec = NULL;
}
if (rec == NULL)