]> granicus.if.org Git - python/commitdiff
Add note about ftplib defaulting to passive mode.
authorGuido van Rossum <guido@python.org>
Mon, 15 Jan 2001 16:36:08 +0000 (16:36 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Jan 2001 16:36:08 +0000 (16:36 +0000)
Misc/NEWS

index 0ccf8baeac51080698c9e70a3598fbe3b5f5469f..2b8e38dc7f947a22ece223e6dc4571323674bf7d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,13 @@ Core language, builtins, and interpreter
 
 Standard library
 
+- The ftplib module now defaults to passive mode, which is deemed a
+  more useful default given that clients are often inside firewalls
+  these days.  Note that this could break if ftplib is used to connect
+  to a *server* that is inside a firewall, from outside; this is
+  expected to be a very rare situation.  To fix that, you can call
+  ftp.set_pasv(0).
+
 - The module site now treats .pth files not only for path configuration,
   but also supports extensions to the initialization code: Lines starting
   with import are executed.