diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index e21f2018..bd7b72dd 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -130,11 +130,10 @@ class VFS(object): class AuthSrv(object): """verifies users against given paths""" - def __init__(self, args, log_func): - self.log_func = log_func + def __init__(self, args, log_func, warn_anonwrite=True): self.args = args - - self.warn_anonwrite = True + self.log_func = log_func + self.warn_anonwrite = warn_anonwrite if WINDOWS: self.re_vol = re.compile(r"^([a-zA-Z]:[\\/][^:]*|[^:]*):([^:]*):(.*)$") diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 47cd42de..0a8b73cf 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -40,7 +40,7 @@ class SvcHub(object): self.up2k = Up2k(self) if self.args.e2d and self.args.e2s: - auth = AuthSrv(self.args, self.log) + auth = AuthSrv(self.args, self.log, False) self.up2k.build_indexes(auth.all_writable) # decide which worker impl to use