From 175ff2cde5a359838ba4885c60174caa9af2b66f Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 13 May 2024 13:40:50 -0700 Subject: [PATCH] Configure bug --- Configure.cpp | 6 +++--- config/tcd.ini | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Configure.cpp b/Configure.cpp index e585b02..c0c57ee 100644 --- a/Configure.cpp +++ b/Configure.cpp @@ -32,7 +32,7 @@ #define DSTARGAININ "DStarGainIn" #define DSTARGAINOUT "DStarGainOut" #define MODULES "Modules" -#define ADDRESS "Address" +#define SERVERADDRESS "ServerAddress" #define PORT "Port" static inline void split(const std::string &s, char delim, std::vector &v) @@ -110,7 +110,7 @@ bool CConfigure::ReadData(const std::string &path) std::cout << "WARNING: missing key or value: '" << line << "'" << std::endl; continue; } - if (0 == key.compare(ADDRESS)) + if (0 == key.compare(SERVERADDRESS)) address.assign(value); else if (0 == key.compare(PORT)) porttmp.assign(value); @@ -163,7 +163,7 @@ bool CConfigure::ReadData(const std::string &path) } std::cout << MODULES << " = " << tcmods << std::endl; - std::cout << ADDRESS << " = " << address << std::endl; + std::cout << SERVERADDRESS << " = " << address << std::endl; std::cout << PORT << " = " << port << std::endl; std::cout << DSTARGAININ << " = " << dstar_in << std::endl; std::cout << DSTARGAINOUT << " = " << dstar_out << std::endl; diff --git a/config/tcd.ini b/config/tcd.ini index cee1602..5758c86 100644 --- a/config/tcd.ini +++ b/config/tcd.ini @@ -5,8 +5,7 @@ Port = 10100 ServerAddress = 127.0.0.1 # VERY IMPORTANT: This need to be idential to the same line in [Transcder] section of the urfd ini file! -# This will either be a single module (for DVSI-3000), or -# up to three modules (for DVSI-3003). +# This will either be a single module (for DVSI-3000), or up to three modules (for DVSI-3003). Modules = A