mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
remove extra anon-rw warning
This commit is contained in:
parent
322b9abadc
commit
a039fae1a4
|
@ -130,11 +130,10 @@ class VFS(object):
|
||||||
class AuthSrv(object):
|
class AuthSrv(object):
|
||||||
"""verifies users against given paths"""
|
"""verifies users against given paths"""
|
||||||
|
|
||||||
def __init__(self, args, log_func):
|
def __init__(self, args, log_func, warn_anonwrite=True):
|
||||||
self.log_func = log_func
|
|
||||||
self.args = args
|
self.args = args
|
||||||
|
self.log_func = log_func
|
||||||
self.warn_anonwrite = True
|
self.warn_anonwrite = warn_anonwrite
|
||||||
|
|
||||||
if WINDOWS:
|
if WINDOWS:
|
||||||
self.re_vol = re.compile(r"^([a-zA-Z]:[\\/][^:]*|[^:]*):([^:]*):(.*)$")
|
self.re_vol = re.compile(r"^([a-zA-Z]:[\\/][^:]*|[^:]*):([^:]*):(.*)$")
|
||||||
|
|
|
@ -40,7 +40,7 @@ class SvcHub(object):
|
||||||
self.up2k = Up2k(self)
|
self.up2k = Up2k(self)
|
||||||
|
|
||||||
if self.args.e2d and self.args.e2s:
|
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)
|
self.up2k.build_indexes(auth.all_writable)
|
||||||
|
|
||||||
# decide which worker impl to use
|
# decide which worker impl to use
|
||||||
|
|
Loading…
Reference in a new issue