Explorar o código

Considering global passive/active mode settings when importing sessions from FileZilla

(cherry picked from commit 2e082617693df06725e8b65d810251ba69c9f1e4)

Source commit: 90e53ac279cd84e4f7b9a6580d845dc728e9d087
Martin Prikryl %!s(int64=4) %!d(string=hai) anos
pai
achega
5ba334dd46
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      source/core/SessionData.cpp

+ 5 - 0
source/core/SessionData.cpp

@@ -1459,6 +1459,11 @@ void __fastcall TSessionData::ImportFromFilezilla(
   {
     FtpPasvMode = false;
   }
+  else if (SettingsNode != NULL)
+  {
+    int PasvMode = ReadSettingsNode(SettingsNode, L"Use Pasv mode", 1);
+    FtpPasvMode = (PasvMode != 0);
+  }
 
   UnicodeString EncodingType = ReadXmlNode(Node, L"EncodingType", L"");
   if (SameText(EncodingType, L"Auto"))