Hack around a bug in pyftpdlib that rejects EPRT connection due to mismatching textual representation of the IPv6 address when the address is not in the normalized format. This happens when the control connection is mangled by Linux NAT.
Signed-off-by: Jarno Rajahalme <[email protected]> --- tests/test-l7.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-l7.py b/tests/test-l7.py index faec2bc..c89fcf2 100755 --- a/tests/test-l7.py +++ b/tests/test-l7.py @@ -37,6 +37,10 @@ def get_ftpd(): 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 -- 2.1.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
