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
def main():
SERVERS = {
- 'http': [TCPServer, SimpleHTTPRequestHandler, 80],
+ 'http': [TCPServer, SimpleHTTPRequestHandler, 80],
'http6': [TCPServerV6, SimpleHTTPRequestHandler, 80],
}