mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
aquatic_common: rename AccessListType to AccessListMode
This commit is contained in:
parent
60d183003d
commit
f0846e3128
5 changed files with 22 additions and 22 deletions
|
|
@ -6,7 +6,7 @@ use std::thread::Builder;
|
|||
use std::time::Duration;
|
||||
|
||||
use anyhow::Context;
|
||||
use aquatic_common::access_list::AccessListType;
|
||||
use aquatic_common::access_list::AccessListMode;
|
||||
use crossbeam_channel::unbounded;
|
||||
use privdrop::PrivDrop;
|
||||
|
||||
|
|
@ -24,11 +24,11 @@ pub const APP_NAME: &str = "aquatic_udp: UDP BitTorrent tracker";
|
|||
pub fn run(config: Config) -> ::anyhow::Result<()> {
|
||||
let state = State::default();
|
||||
|
||||
match config.access_list.list_type {
|
||||
AccessListType::Allow | AccessListType::Deny => {
|
||||
match config.access_list.mode {
|
||||
AccessListMode::Allow | AccessListMode::Deny => {
|
||||
state.access_list.lock().update_from_path(&config.access_list.path)?;
|
||||
},
|
||||
AccessListType::Ignore => {},
|
||||
AccessListMode::Ignore => {},
|
||||
}
|
||||
|
||||
let num_bound_sockets = start_workers(config.clone(), state.clone())?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue