mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 09:09:03 +03:00
feat: add no-auth-read options
This commit is contained in:
@@ -319,6 +319,9 @@ impl InnerService {
|
||||
let value = std::str::from_utf8(&value)?;
|
||||
return Ok(value == auth);
|
||||
} else {
|
||||
if self.args.no_auth_read && req.method() == Method::GET {
|
||||
return Ok(true);
|
||||
}
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user