Browse Source

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

Source commit: 933353d4dc18a8106cf9879a291c5bb0ccb17acb
Martin Prikryl 4 years ago
parent
commit
2e08261769
1 changed files with 5 additions and 0 deletions
  1. 5 0
      source/core/SessionData.cpp

+ 5 - 0
source/core/SessionData.cpp

@@ -1461,6 +1461,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"))