mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Run rustfmt
This commit is contained in:
parent
40b7bfe309
commit
b8b9a9839a
2 changed files with 9 additions and 4 deletions
|
|
@ -9,7 +9,9 @@ use rand::{
|
|||
Rng, SeedableRng,
|
||||
};
|
||||
|
||||
use aquatic_common::{convert_ipv4_mapped_ipv6, extract_response_peers, access_list::AccessListMode};
|
||||
use aquatic_common::{
|
||||
access_list::AccessListMode, convert_ipv4_mapped_ipv6, extract_response_peers,
|
||||
};
|
||||
use aquatic_udp_protocol::*;
|
||||
|
||||
use crate::common::*;
|
||||
|
|
|
|||
|
|
@ -26,9 +26,12 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
|
||||
match config.access_list.mode {
|
||||
AccessListMode::Require | AccessListMode::Forbid => {
|
||||
state.access_list.lock().update_from_path(&config.access_list.path)?;
|
||||
},
|
||||
AccessListMode::Ignore => {},
|
||||
state
|
||||
.access_list
|
||||
.lock()
|
||||
.update_from_path(&config.access_list.path)?;
|
||||
}
|
||||
AccessListMode::Ignore => {}
|
||||
}
|
||||
|
||||
let num_bound_sockets = start_workers(config.clone(), state.clone())?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue