1
0
Fork 0

Update YSFReflectors.cpp

Account for upper case hostname matching when connecting at startup
ycs232-kbc
Andy Taylor 6 years ago committed by GitHub
parent 6a0a483d9a
commit f29925ff32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -277,6 +277,9 @@ CYSFReflector* CYSFReflectors::findById(const std::string& id)
CYSFReflector* CYSFReflectors::findByName(const std::string& name) CYSFReflector* CYSFReflectors::findByName(const std::string& name)
{ {
std::string fullName = name; std::string fullName = name;
if (m_makeUpper) {
std::transform(fullName.begin(), fullName.end(), fullName.begin(), ::toupper);
}
fullName.resize(16U, ' '); fullName.resize(16U, ' ');
for (std::vector<CYSFReflector*>::const_iterator it = m_currReflectors.cbegin(); it != m_currReflectors.cend(); ++it) { for (std::vector<CYSFReflector*>::const_iterator it = m_currReflectors.cbegin(); it != m_currReflectors.cend(); ++it) {

Loading…
Cancel
Save