diff --git a/pyftpdlib/handlers.py b/pyftpdlib/handlers.py index b5613a43..446ad2d1 100644 --- a/pyftpdlib/handlers.py +++ b/pyftpdlib/handlers.py @@ -367,7 +367,7 @@ def __init__(self, cmd_channel, extmode=False): ip = ip[7:] # The format of 227 response in not standardized. # This is the most expected: - resp = '227 Entering passive mode (%s,%d,%d).' % ( + resp = '227 Entering Passive Mode (%s,%d,%d).' % ( ip.replace('.', ','), port // 256, port % 256) self.cmd_channel.respond(resp) else: