mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 14:53:52 +00:00
add configuiration to bind to specific IP
This commit is contained in:
parent
815165141c
commit
0cfd041de9
7 changed files with 33 additions and 9 deletions
|
|
@ -45,7 +45,8 @@ m_logFileLevel(0U),
|
|||
m_logFilePath(),
|
||||
m_logFileRoot(),
|
||||
m_networkPort(0U),
|
||||
m_networkDebug(false)
|
||||
m_networkDebug(false),
|
||||
m_networkBindAddr()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -112,6 +113,8 @@ bool CConf::read()
|
|||
m_networkPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
m_networkDebug = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "BindAddress") == 0)
|
||||
m_networkBindAddr = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -169,3 +172,8 @@ bool CConf::getNetworkDebug() const
|
|||
{
|
||||
return m_networkDebug;
|
||||
}
|
||||
|
||||
std::string CConf::getNetworkBindAddr() const
|
||||
{
|
||||
return m_networkBindAddr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue