|
|
@ -115,6 +115,9 @@ bool CReflectors::load()
|
|
|
|
::fclose(fp);
|
|
|
|
::fclose(fp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
size_t size = m_reflectors.size();
|
|
|
|
|
|
|
|
LogInfo("Loaded %u YSF reflectors", size);
|
|
|
|
|
|
|
|
|
|
|
|
// Add the Parrot entry
|
|
|
|
// Add the Parrot entry
|
|
|
|
if (m_parrotPort > 0U) {
|
|
|
|
if (m_parrotPort > 0U) {
|
|
|
|
CYSFReflector* refl = new CYSFReflector;
|
|
|
|
CYSFReflector* refl = new CYSFReflector;
|
|
|
@ -125,16 +128,15 @@ bool CReflectors::load()
|
|
|
|
refl->m_port = m_parrotPort;
|
|
|
|
refl->m_port = m_parrotPort;
|
|
|
|
refl->m_count = "000";
|
|
|
|
refl->m_count = "000";
|
|
|
|
m_reflectors.push_back(refl);
|
|
|
|
m_reflectors.push_back(refl);
|
|
|
|
|
|
|
|
LogInfo("Loaded YSF parrot");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
size_t size = m_reflectors.size();
|
|
|
|
size = m_reflectors.size();
|
|
|
|
if (size == 0U)
|
|
|
|
if (size == 0U)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
std::sort(m_reflectors.begin(), m_reflectors.end(), refComparison);
|
|
|
|
std::sort(m_reflectors.begin(), m_reflectors.end(), refComparison);
|
|
|
|
|
|
|
|
|
|
|
|
LogInfo("Loaded %u YSF reflectors", size);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|