Update YSFReflectors.cpp
Account for upper case hostname matching when connecting at startup
This commit is contained in:
parent
6a0a483d9a
commit
f29925ff32
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ CYSFReflector* CYSFReflectors::findById(const std::string& id)
|
|||
CYSFReflector* CYSFReflectors::findByName(const std::string& name)
|
||||
{
|
||||
std::string fullName = name;
|
||||
if (m_makeUpper) {
|
||||
std::transform(fullName.begin(), fullName.end(), fullName.begin(), ::toupper);
|
||||
}
|
||||
fullName.resize(16U, ' ');
|
||||
|
||||
for (std::vector<CYSFReflector*>::const_iterator it = m_currReflectors.cbegin(); it != m_currReflectors.cend(); ++it) {
|
||||
|
|
Loading…
Reference in a new issue