Adding enhancement #76 (server password). The server password is checked during init, in addition to possible player auth. It can be set as option "ServerPassword" in config.xml, on client and server.

This commit is contained in:
lotodore committed 2011-10-20 21:19:58 +00:00
1 parent 2f588ffed7
commit ddf2ca784b
7 files changed
+40 -3

No files matched your search

+2
View File
@@ -68,6 +68,7 @@ ClientThread::~ClientThread()
void
ClientThread::Init(
const string &serverAddress, const string &serverListUrl,
const string &serverPassword,
bool useServerList, unsigned serverPort, bool ipv6, bool sctp,
const string &avatarServerAddress, const string &playerName,
const string &avatarFile, const string &cacheDir)
@@ -83,6 +84,7 @@ ClientThread::Init(
context.SetAddrFamily(ipv6 ? AF_INET6 : AF_INET);
context.SetServerAddr(serverAddress);
context.SetServerListUrl(serverListUrl);
context.SetServerPassword(serverPassword);
context.SetUseServerList(useServerList);
context.SetServerPort(serverPort);
context.SetAvatarServerAddr(avatarServerAddress);