diff options
author | Guido van Rossum <guido@python.org> | 2001-01-15 16:32:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-15 16:32:49 (GMT) |
commit | e6ccf3ab966c37f25c3c0e4da58c3b0bc7c5a1f6 (patch) | |
tree | 48388570bf7a120d3b13f0466847ea90a205560b /Lib | |
parent | 3f819ec2edc54c8ccf0e6edb836a908ff6e31904 (diff) | |
download | cpython-e6ccf3ab966c37f25c3c0e4da58c3b0bc7c5a1f6.zip cpython-e6ccf3ab966c37f25c3c0e4da58c3b0bc7c5a1f6.tar.gz cpython-e6ccf3ab966c37f25c3c0e4da58c3b0bc7c5a1f6.tar.bz2 |
Default to passive mode. See SF bug #126851.
This is slightly controversial, but after reading the argumentation in
the bug tracker for and against, I believe this is the right solution.
Let me know if it breaks for you, and how.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ftplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 5d0e260..ebb4d15 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -113,7 +113,7 @@ class FTP: - port: port to connect to (integer, default previous port)''' if host: self.host = host if port: self.port = port - self.passiveserver = 0 + self.passiveserver = 1 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((self.host, self.port)) self.file = self.sock.makefile('rb') |