Possibility of inserting startup reflector as ID
This commit is contained in:
parent
351e6c2d59
commit
2530199d54
2 changed files with 3 additions and 1 deletions
|
@ -840,6 +840,8 @@ void CYSFGateway::startupLinking()
|
|||
m_linkType = LINK_NONE;
|
||||
|
||||
CYSFReflector* reflector = m_reflectors->findByName(m_startup);
|
||||
if (reflector == NULL)
|
||||
reflector = m_reflectors->findById(m_startup);
|
||||
if (reflector != NULL) {
|
||||
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) {
|
||||
CYSFReflector* refl = new CYSFReflector;
|
||||
refl->m_id = "00006";
|
||||
refl->m_name = "YSFDirect ";
|
||||
refl->m_name = "YSFDIRECT ";
|
||||
refl->m_desc = "Link YSFDirect";
|
||||
refl->m_addr = addr;
|
||||
refl->m_addrLen = addrLen;
|
||||
|
|
Loading…
Reference in a new issue