mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Allow optional direct connections to masters again.
This commit is contained in:
parent
1b0caaae23
commit
136deac61a
26 changed files with 1865 additions and 527 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -206,6 +206,7 @@ m_dstarLocalPort(0U),
|
|||
m_dstarNetworkModeHang(3U),
|
||||
m_dstarNetworkDebug(false),
|
||||
m_dmrNetworkEnabled(false),
|
||||
m_dmrNetworkType("Gateway"),
|
||||
m_dmrNetworkAddress(),
|
||||
m_dmrNetworkPort(0U),
|
||||
m_dmrNetworkLocal(0U),
|
||||
|
|
@ -794,6 +795,8 @@ bool CConf::read()
|
|||
} else if (section == SECTION_DMR_NETWORK) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_dmrNetworkEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Type") == 0)
|
||||
m_dmrNetworkType = value;
|
||||
else if (::strcmp(key, "Address") == 0)
|
||||
m_dmrNetworkAddress = value;
|
||||
else if (::strcmp(key, "Port") == 0)
|
||||
|
|
@ -1687,6 +1690,11 @@ bool CConf::getDMRNetworkEnabled() const
|
|||
return m_dmrNetworkEnabled;
|
||||
}
|
||||
|
||||
std::string CConf::getDMRNetworkType() const
|
||||
{
|
||||
return m_dmrNetworkType;
|
||||
}
|
||||
|
||||
std::string CConf::getDMRNetworkAddress() const
|
||||
{
|
||||
return m_dmrNetworkAddress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue