79759014

Date: 2025-09-08 14:24:55
Score: 1.5
Natty:
Report link

@snhou answer helped me figuring out a bug in FTPHost, it always defaults to port 21:


    class ImplicitFTP_TLS(FTP_TLS):
        port = 990
        _sock = None
        def __init__(self, *args, **kwargs):
            super().__init__(*args, **kwargs)
            self.prot_p()
        ...

Then you can do:

    fhost = FTPHost(host, user, pw, session_factory=ImplicitFTP_TLS)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @snhou
  • Low reputation (1):
Posted by: jonragnarsson