support ftps-only; closes #30

This commit is contained in:
ed 2023-06-02 19:02:50 +00:00
parent 025a537413
commit 510302d667

View file

@ -502,9 +502,9 @@ class Ftpd(object):
for h_lp in hs: for h_lp in hs:
h2, lp = h_lp h2, lp = h_lp
h2.hub = hub FtpHandler.hub = h2.hub = hub
h2.args = hub.args FtpHandler.args = h2.args = hub.args
h2.authorizer = FtpAuth(hub) FtpHandler.authorizer = h2.authorizer = FtpAuth(hub)
if self.args.ftp_pr: if self.args.ftp_pr:
p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")] p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")]