Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].

This commit is contained in:
Daniel Caujolle-Bert 2021-04-25 07:51:51 +02:00
parent c9660478c5
commit fc76b0f4ab
No known key found for this signature in database
GPG key ID: 51AED7171EC00614
39 changed files with 174 additions and 166 deletions

View file

@ -137,7 +137,7 @@ bool CConf::read()
m_logFileRotate = ::atoi(value) == 1;
} else if (section == SECTION_NETWORK) {
if (::strcmp(key, "Port") == 0)
m_networkPort = (unsigned int)::atoi(value);
m_networkPort = (unsigned short)::atoi(value);
else if (::strcmp(key, "Debug") == 0)
m_networkDebug = ::atoi(value) == 1;
} else if (section == SECTION_BLOCKLIST) {
@ -198,7 +198,7 @@ bool CConf::getLogFileRotate() const
return m_logFileRotate;
}
unsigned int CConf::getNetworkPort() const
unsigned short CConf::getNetworkPort() const
{
return m_networkPort;
}