summaryrefslogtreecommitdiff
path: root/src/net/ea/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-02 21:57:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-02 22:00:37 +0300
commiteca890c92d3b43b8aae5f2c53cab49612f5efd1d (patch)
tree8acbdfe972044adcfbcc5a6bf7ea28b4bbb54382 /src/net/ea/loginhandler.cpp
parent520a495c466793c29f3e721634dfe6cc616b8ede (diff)
downloadplus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.gz
plus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.bz2
plus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.xz
plus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.zip
Add option "use same ip" for each server.
By default all servers using same ip for subservers.
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r--src/net/ea/loginhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index af86aaf93..d4cf0e59e 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -75,7 +75,8 @@ void LoginHandler::loginAccount(LoginData *const loginData1) const
}
}
-void LoginHandler::chooseServer(const unsigned int server) const
+void LoginHandler::chooseServer(const unsigned int server,
+ const bool persistentIp) const
{
if (server >= mWorlds.size() || !mWorlds[server])
return;
@@ -83,7 +84,7 @@ void LoginHandler::chooseServer(const unsigned int server) const
ServerInfo *const charServer = getCharServer();
if (charServer)
{
- if (config.getBoolValue("usePersistentIP"))
+ if (config.getBoolValue("usePersistentIP") || persistentIp)
charServer->hostname = client->getServerName();
else
charServer->hostname = ipToString(mWorlds[server]->address);