mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_http: check access list in announce request handler
This commit is contained in:
parent
4fa199a1e0
commit
7fec41099b
4 changed files with 73 additions and 59 deletions
|
|
@ -27,8 +27,9 @@ pub fn run(config: Config) -> anyhow::Result<()> {
|
|||
match config.access_list.mode {
|
||||
AccessListMode::Require | AccessListMode::Forbid => {
|
||||
state
|
||||
.access_list
|
||||
.torrent_maps
|
||||
.lock()
|
||||
.access_list
|
||||
.update_from_path(&config.access_list.path)?;
|
||||
}
|
||||
AccessListMode::Ignore => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue