Subversion Repositories tpanel

Rev

Rev 162 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 162 Rev 164
Line 2234... Line 2234...
2234
 
2234
 
2235
vector<string>& TTPInit::getFileList(const string& filter)
2235
vector<string>& TTPInit::getFileList(const string& filter)
2236
{
2236
{
2237
    DECL_TRACER("TTPInit::getFileList(const string& filter)");
2237
    DECL_TRACER("TTPInit::getFileList(const string& filter)");
2238
 
2238
 
-
 
2239
    string netlinx = TConfig::getController();
-
 
2240
 
-
 
2241
    if (netlinx.empty() || netlinx == "0.0.0.0")
-
 
2242
    {
-
 
2243
        MSG_WARNING("Refusing to connect to " << netlinx << ":21!");
-
 
2244
        mDirList.clear();
-
 
2245
        return mDirList;
-
 
2246
    }
-
 
2247
 
2239
    ftplib *ftp = new ftplib();
2248
    ftplib *ftp = new ftplib();
2240
    ftp->regLogging(bind(&TTPInit::logging, this, std::placeholders::_1, std::placeholders::_2));
2249
    ftp->regLogging(bind(&TTPInit::logging, this, std::placeholders::_1, std::placeholders::_2));
2241
 
2250
 
2242
    if (TConfig::getFtpPassive())
2251
    if (TConfig::getFtpPassive())
2243
        ftp->SetConnmode(ftplib::pasv);
2252
        ftp->SetConnmode(ftplib::pasv);