From 610ececb74d5efb4ed4df54dbceaa54fcbcf99e5 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 24 May 2009 17:20:36 +0200 Subject: Made it possible to specify the host to listen on Needed when the server has multiple network interfaces and the one you want to use isn't the default one for localhost. The host to listen on can be set in config file with 'net_listenHost'. --- src/account-server/accounthandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/account-server/accounthandler.cpp') diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index e785d809..d04671e2 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -90,11 +90,12 @@ AccountHandler::AccountHandler(): { } -bool AccountClientHandler::initialize(int port) +bool AccountClientHandler::initialize(int port, const std::string &host) { accountHandler = new AccountHandler; LOG_INFO("Account handler started:"); - return accountHandler->startListen(port); + + return accountHandler->startListen(port, host); } void AccountClientHandler::deinitialize() -- cgit v1.2.3-70-g09d2