Преглед изворни кода

Fixing IIS detection

Source commit: eae8b09d78e02b01185fc5bf947895475bafb6ee
Martin Prikryl пре 9 година
родитељ
комит
4cf27422e5
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      source/core/FtpFileSystem.cpp

+ 6 - 6
source/core/FtpFileSystem.cpp

@@ -3597,12 +3597,6 @@ void __fastcall TFTPFileSystem::HandleReplyStatus(UnicodeString Response)
           FTerminal->LogEvent(L"The server requires TLS/SSL handshake on transfer connection before responding 1yz to STOR/APPE");
           FTerminal->LogEvent(L"The server requires TLS/SSL handshake on transfer connection before responding 1yz to STOR/APPE");
           FTransferActiveImmediately = true;
           FTransferActiveImmediately = true;
         }
         }
-        // The FWelcomeMessage usually contains "Microsoft FTP Service" but can be empty
-        if (ContainsText(FSystem, L"Windows_NT"))
-        {
-          FTerminal->LogEvent(L"The server is probably running Windows, assuming that directory listing timestamps are affected by DST.");
-          FWindowsServer = true;
-        }
       }
       }
     }
     }
     else if (FLastCommand == PASS)
     else if (FLastCommand == PASS)
@@ -3628,6 +3622,12 @@ void __fastcall TFTPFileSystem::HandleReplyStatus(UnicodeString Response)
           FTerminal->LogEvent(L"Server is known not to support LIST -a");
           FTerminal->LogEvent(L"Server is known not to support LIST -a");
           FListAll = asOff;
           FListAll = asOff;
         }
         }
+        // The FWelcomeMessage usually contains "Microsoft FTP Service" but can be empty
+        if (ContainsText(FSystem, L"Windows_NT"))
+        {
+          FTerminal->LogEvent(L"The server is probably running Windows, assuming that directory listing timestamps are affected by DST.");
+          FWindowsServer = true;
+        }
       }
       }
       else
       else
       {
       {