mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Merge branch 'ipv6' into SimpleDMR
This commit is contained in:
commit
3de54f6dd8
24 changed files with 299 additions and 266 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -276,6 +276,7 @@ m_lcdprocDimOnIdle(false),
|
|||
m_lockFileEnabled(false),
|
||||
m_lockFileName(),
|
||||
m_remoteControlEnabled(false),
|
||||
m_remoteControlAddress("127.0.0.1"),
|
||||
m_remoteControlPort(0U)
|
||||
{
|
||||
}
|
||||
|
|
@ -938,6 +939,8 @@ bool CConf::read()
|
|||
} else if (section == SECTION_REMOTE_CONTROL) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_remoteControlEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Address") == 0)
|
||||
m_remoteControlAddress = value;
|
||||
else if (::strcmp(key, "Port") == 0)
|
||||
m_remoteControlPort = (unsigned int)::atoi(value);
|
||||
}
|
||||
|
|
@ -2019,6 +2022,11 @@ bool CConf::getRemoteControlEnabled() const
|
|||
return m_remoteControlEnabled;
|
||||
}
|
||||
|
||||
std::string CConf::getRemoteControlAddress() const
|
||||
{
|
||||
return m_remoteControlAddress;
|
||||
}
|
||||
|
||||
unsigned int CConf::getRemoteControlPort() const
|
||||
{
|
||||
return m_remoteControlPort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue