tests: Fix typo in comment.
[cascardo/ovs.git] / tests / test-l7.py
index 65c6c2a..c89fcf2 100755 (executable)
@@ -30,9 +30,17 @@ def get_ftpd():
         from pyftpdlib.handlers import FTPHandler
         from pyftpdlib.servers import FTPServer
 
+        import logging
+        import pyftpdlib.log
+        pyftpdlib.log.LEVEL = logging.DEBUG
+
         class OVSFTPHandler(FTPHandler):
             authorizer = DummyAuthorizer()
             authorizer.add_anonymous("/tmp")
+            # Hack around a bug in pyftpdlib, which rejects EPRT
+            # connection due to mismatching textual representation of
+            # the IPv6 address.
+            permit_foreign_addresses = True
         server = [FTPServer, OVSFTPHandler, 21]
     except ImportError:
         server = None