diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 17:20:36 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 17:20:36 +0200 |
commit | 610ececb74d5efb4ed4df54dbceaa54fcbcf99e5 (patch) | |
tree | 4cfa485ebd00103bcb7cd7c139435bc0c92088e4 /src/account-server/accounthandler.cpp | |
parent | af12180611e2c0520ee4974d5246e474fd8e704e (diff) | |
download | manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.gz manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.bz2 manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.xz manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.zip |
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'.
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r-- | src/account-server/accounthandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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() |