Browse Source

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

(cherry picked from commit 2e082617693df06725e8b65d810251ba69c9f1e4)

Source commit: 90e53ac279cd84e4f7b9a6580d845dc728e9d087
Martin Prikryl 4 năm trước cách đây
mục cha
commit
5ba334dd46
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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"))