Przeglądaj źródła

Bug 2224: Recognize IP addresses starting with zero in FTP PASV response as unroutable

https://winscp.net/tracker/2224

Source commit: ad239582183c57611fbb6a66f7bd32caecee80ed
Martin Prikryl 2 lat temu
rodzic
commit
46bd5c5396
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      source/filezilla/FtpControlSocket.cpp

+ 2 - 1
source/filezilla/FtpControlSocket.cpp

@@ -6385,7 +6385,8 @@ bool CFtpControlSocket::IsRoutableAddress(const CString & host)
   if (host.Left(3) == L"127" ||
       host.Left(3) == L"10." ||
       host.Left(7) == L"192.168" ||
-      host.Left(7) == L"169.254")
+      host.Left(7) == L"169.254" ||
+      host.Left(2) == L"0.")
   {
     return false;
   }