added default server address
This commit is contained in:
parent
0087d50761
commit
881ce91832
2 changed files with 22 additions and 18 deletions
|
@ -49,6 +49,9 @@
|
||||||
// file name for logging file
|
// file name for logging file
|
||||||
#define DEFAULT_LOG_FILE_NAME "llconsrvlog.txt"
|
#define DEFAULT_LOG_FILE_NAME "llconsrvlog.txt"
|
||||||
|
|
||||||
|
// default server address
|
||||||
|
#define DEFAULT_SERVER_ADDRESS "llcon.dyndns.org"
|
||||||
|
|
||||||
// defined port number for client and server
|
// defined port number for client and server
|
||||||
#define LLCON_PORT_NUMBER 22122
|
#define LLCON_PORT_NUMBER 22122
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@ void CSettings::ReadIniFile ( const QString& sFileName )
|
||||||
|
|
||||||
// actual settings data ---------------------------------------------------
|
// actual settings data ---------------------------------------------------
|
||||||
// IP address
|
// IP address
|
||||||
pClient->strIPAddress = GetIniSetting ( IniXMLDocument, "client", "ipaddress" );
|
pClient->strIPAddress = GetIniSetting ( IniXMLDocument, "client",
|
||||||
|
"ipaddress", DEFAULT_SERVER_ADDRESS );
|
||||||
|
|
||||||
// name
|
// name
|
||||||
pClient->strName = GetIniSetting ( IniXMLDocument, "client", "name" );
|
pClient->strName = GetIniSetting ( IniXMLDocument, "client", "name" );
|
||||||
|
|
Loading…
Reference in a new issue