Rename config file values.

This commit is contained in:
Jonathan Naylor
2016-06-08 06:10:51 +01:00
parent 5a2c569887
commit ee93e4ce43
2 changed files with 4 additions and 4 deletions

View File

@@ -352,9 +352,9 @@ bool CConf::read()
} else if (section == SECTION_FUSION_NETWORK) { } else if (section == SECTION_FUSION_NETWORK) {
if (::strcmp(key, "Enable") == 0) if (::strcmp(key, "Enable") == 0)
m_fusionNetworkEnabled = ::atoi(value) == 1; m_fusionNetworkEnabled = ::atoi(value) == 1;
else if (::strcmp(key, "MyAddress") == 0) else if (::strcmp(key, "LocalAddress") == 0)
m_fusionNetworkMyAddress = value; m_fusionNetworkMyAddress = value;
else if (::strcmp(key, "MyPort") == 0) else if (::strcmp(key, "LocalPort") == 0)
m_fusionNetworkMyPort = (unsigned int)::atoi(value); m_fusionNetworkMyPort = (unsigned int)::atoi(value);
else if (::strcmp(key, "GwyAddress") == 0) else if (::strcmp(key, "GwyAddress") == 0)
m_fusionNetworkGwyAddress = value; m_fusionNetworkGwyAddress = value;

View File

@@ -78,8 +78,8 @@ Debug=0
[System Fusion Network] [System Fusion Network]
Enable=1 Enable=1
MyAddress=127.0.0.1 LocalAddress=127.0.0.1
MyPort=3200 LocalPort=3200
GwyAddress=c4fm.duckdns.org GwyAddress=c4fm.duckdns.org
GwyPort=4200 GwyPort=4200
Debug=0 Debug=0