From 510302d6678c303e4691f085dc54136f0eaf74ed Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 2 Jun 2023 19:02:50 +0000 Subject: [PATCH] support ftps-only; closes #30 --- copyparty/ftpd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/ftpd.py b/copyparty/ftpd.py index caa17781..48913b6b 100644 --- a/copyparty/ftpd.py +++ b/copyparty/ftpd.py @@ -502,9 +502,9 @@ class Ftpd(object): for h_lp in hs: h2, lp = h_lp - h2.hub = hub - h2.args = hub.args - h2.authorizer = FtpAuth(hub) + FtpHandler.hub = h2.hub = hub + FtpHandler.args = h2.args = hub.args + FtpHandler.authorizer = h2.authorizer = FtpAuth(hub) if self.args.ftp_pr: p1, p2 = [int(x) for x in self.args.ftp_pr.split("-")]