- added an option to disable FTP server but keep ftp client

This commit is contained in:
Mark Vejvoda
2011-01-07 05:32:47 +00:00
parent ec467b6ac4
commit 02b7787b35
3 changed files with 32 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ ServerInterface::ServerInterface() : GameNetworkInterface() {
serverSocket.setBindPort(Config::getInstance().getInt("ServerPort",intToStr(GameConstants::serverPort).c_str()));
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
if(Config::getInstance().getBool("EnableFTPXfer","true") == true) {
if(Config::getInstance().getBool("EnableFTPServer","true") == true) {
std::pair<string,string> mapsPath;
vector<string> pathList = Config::getInstance().getPathListForType(ptMaps);
if(pathList.size() > 0) {