summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/account-server/accounthandler.cpp4
-rw-r--r--src/game-server/accountconnection.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index b0ac4d57..3590dbeb 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -881,8 +881,8 @@ void AccountHandler::handleCharacterSelectMessage(AccountClient &client,
reply.writeInt16(port);
// Give address and port for the chat server
- reply.writeString(Configuration::getValue("net_chatHost",
- "localhost"));
+ reply.writeString(Configuration::getValue("net_publicChatHost",
+ Configuration::getValue("net_chatHost", "localhost")));
// When the chatListenToClientPort is set, we use it.
// Otherwise, we use the accountListenToClientPort + 2 if the option is set.
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp
index 52282a99..3d37ea67 100644
--- a/src/game-server/accountconnection.cpp
+++ b/src/game-server/accountconnection.cpp
@@ -78,7 +78,9 @@ bool AccountConnection::start(int gameServerPort)
LOG_INFO("Connection established to the account server.");
const std::string gameServerAddress =
- Configuration::getValue("net_gameHost", "localhost");
+ Configuration::getValue("net_publicGameHost",
+ Configuration::getValue("net_gameHost",
+ "localhost"));
const std::string password =
Configuration::getValue("net_password", "changeMe");