1
0
Fork 0

Possibility of inserting startup reflector as ID

master
Antonio Matraia 1 year ago
parent 351e6c2d59
commit 2530199d54

@ -840,6 +840,8 @@ void CYSFGateway::startupLinking()
m_linkType = LINK_NONE; m_linkType = LINK_NONE;
CYSFReflector* reflector = m_reflectors->findByName(m_startup); CYSFReflector* reflector = m_reflectors->findByName(m_startup);
if (reflector == NULL)
reflector = m_reflectors->findById(m_startup);
if (reflector != NULL) { if (reflector != NULL) {
LogMessage("Automatic (re-)connection to %5.5s - \"%s\"", reflector->m_id.c_str(), reflector->m_name.c_str()); LogMessage("Automatic (re-)connection to %5.5s - \"%s\"", reflector->m_id.c_str(), reflector->m_name.c_str());

@ -267,7 +267,7 @@ bool CYSFReflectors::load()
if (CUDPSocket::lookup(m_YSFDirectAddress, m_YSFDirectPort, addr, addrLen) == 0) { if (CUDPSocket::lookup(m_YSFDirectAddress, m_YSFDirectPort, addr, addrLen) == 0) {
CYSFReflector* refl = new CYSFReflector; CYSFReflector* refl = new CYSFReflector;
refl->m_id = "00006"; refl->m_id = "00006";
refl->m_name = "YSFDirect "; refl->m_name = "YSFDIRECT ";
refl->m_desc = "Link YSFDirect"; refl->m_desc = "Link YSFDirect";
refl->m_addr = addr; refl->m_addr = addr;
refl->m_addrLen = addrLen; refl->m_addrLen = addrLen;

Loading…
Cancel
Save