summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/download.cpp2
-rw-r--r--src/net/ea/charserverhandler.cpp2
-rw-r--r--src/net/ea/loginhandler.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index f469a3258..1d49caea2 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -73,7 +73,7 @@ Download::Download(void *const ptr, const std::string &url,
mOptions.cancel = 0;
mOptions.memoryWrite = 0;
mOptions.checkAdler = true;
- const std::string serverName = Client::getServerName();
+ const std::string serverName = client->getServerName();
if (!serverName.empty())
{
if (mUrl.find("?") == std::string::npos)
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index 81beac26e..f428aea54 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -242,7 +242,7 @@ void CharServerHandler::processCharMapInfo(Net::MessageIn &msg,
if (config.getBoolValue("usePersistentIP"))
{
msg.readInt32();
- server.hostname = Client::getServerName();
+ server.hostname = client->getServerName();
}
else
{
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index fbe588b1f..70b32c92c 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -87,7 +87,7 @@ void LoginHandler::chooseServer(const unsigned int server) const
if (charServer)
{
if (config.getBoolValue("usePersistentIP"))
- charServer->hostname = Client::getServerName();
+ charServer->hostname = client->getServerName();
else
charServer->hostname = ipToString(mWorlds[server]->address);
charServer->port = mWorlds[server]->port;