diff --git a/NXDNGateway/Conf.cpp b/NXDNGateway/Conf.cpp index 4b007a1..d18c68d 100644 --- a/NXDNGateway/Conf.cpp +++ b/NXDNGateway/Conf.cpp @@ -42,7 +42,7 @@ m_rptAddress(), m_rptPort(0U), m_myAddress(), m_myPort(0U), -m_announcements(true), +m_rptDebug(false), m_daemon(false), m_lookupName(), m_lookupTime(0U), @@ -118,8 +118,8 @@ bool CConf::read() m_myAddress = value; else if (::strcmp(key, "LocalPort") == 0) m_myPort = (unsigned int)::atoi(value); - else if (::strcmp(key, "Announcements") == 0) - m_announcements = ::atoi(value) == 1; + else if (::strcmp(key, "Debug") == 0) + m_rptDebug = ::atoi(value) == 1; else if (::strcmp(key, "Daemon") == 0) m_daemon = ::atoi(value) == 1; } else if (section == SECTION_ID_LOOKUP) { @@ -191,9 +191,9 @@ unsigned int CConf::getMyPort() const return m_myPort; } -bool CConf::getAnnouncements() const +bool CConf::getRptDebug() const { - return m_announcements; + return m_rptDebug; } bool CConf::getDaemon() const diff --git a/NXDNGateway/Conf.h b/NXDNGateway/Conf.h index 5866b0a..3638c62 100644 --- a/NXDNGateway/Conf.h +++ b/NXDNGateway/Conf.h @@ -36,7 +36,7 @@ public: unsigned int getRptPort() const; std::string getMyAddress() const; unsigned int getMyPort() const; - bool getAnnouncements() const; + bool getRptDebug() const; bool getDaemon() const; // The Id Lookup section @@ -70,7 +70,7 @@ private: unsigned int m_rptPort; std::string m_myAddress; unsigned int m_myPort; - bool m_announcements; + bool m_rptDebug; bool m_daemon; std::string m_lookupName; diff --git a/NXDNGateway/NXDNGateway.cpp b/NXDNGateway/NXDNGateway.cpp index 85677c6..8e1cda6 100644 --- a/NXDNGateway/NXDNGateway.cpp +++ b/NXDNGateway/NXDNGateway.cpp @@ -161,7 +161,7 @@ void CNXDNGateway::run() } #endif - CIcomNetwork localNetwork(m_conf.getMyAddress(), m_conf.getMyPort(), m_conf.getRptAddress(), m_conf.getRptPort(), false); + CIcomNetwork localNetwork(m_conf.getMyAddress(), m_conf.getMyPort(), m_conf.getRptAddress(), m_conf.getRptPort(), m_conf.getRptDebug()); ret = localNetwork.open(); if (!ret) { ::LogFinalise(); diff --git a/NXDNGateway/NXDNGateway.ini b/NXDNGateway/NXDNGateway.ini index 3b951ec..7333793 100644 --- a/NXDNGateway/NXDNGateway.ini +++ b/NXDNGateway/NXDNGateway.ini @@ -4,6 +4,7 @@ RptAddress=127.0.0.1 RptPort=14021 LocalAddress=127.0.0.1 LocalPort=14020 +Debug=0 Daemon=1 [Voice]