From dcd66debbe519403d3b8f7bf30313fbdee71fe6c Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 7 Apr 2012 17:31:06 +0200 Subject: Fixed issues with server behind router Tested-by: jurkan. Reviewed-by: Bertram. --- src/account-server/accounthandler.cpp | 4 ++-- src/game-server/accountconnection.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3-70-g09d2