🚧 wip: add placeholder for client tokens
parent
324c1f7cd6
commit
5376e8bba0
|
@ -40,6 +40,7 @@
|
||||||
#![allow (clippy::mut_mut)]
|
#![allow (clippy::mut_mut)]
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
|
collections::*,
|
||||||
future::Future,
|
future::Future,
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
|
@ -60,6 +61,7 @@ use ptth_core::{
|
||||||
http_serde,
|
http_serde,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
// use crate::key_validity::BlakeHashWrapper;
|
||||||
|
|
||||||
pub mod errors;
|
pub mod errors;
|
||||||
|
|
||||||
|
@ -218,6 +220,9 @@ pub struct ConfigFile {
|
||||||
|
|
||||||
/// For debugging.
|
/// For debugging.
|
||||||
pub throttle_upload: bool,
|
pub throttle_upload: bool,
|
||||||
|
|
||||||
|
// Clients don't need to auth if this is None
|
||||||
|
// pub client_tripcodes: HashMap <String, BlakeHashWrapper>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ConfigFile {
|
impl ConfigFile {
|
||||||
|
@ -229,6 +234,7 @@ impl ConfigFile {
|
||||||
relay_url,
|
relay_url,
|
||||||
file_server_root: PathBuf::from ("."),
|
file_server_root: PathBuf::from ("."),
|
||||||
throttle_upload: false,
|
throttle_upload: false,
|
||||||
|
// client_tripcodes: HashSet::new (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,6 +275,7 @@ impl Builder {
|
||||||
relay_url,
|
relay_url,
|
||||||
file_server_root: PathBuf::from ("."),
|
file_server_root: PathBuf::from ("."),
|
||||||
throttle_upload: false,
|
throttle_upload: false,
|
||||||
|
// client_tripcodes: HashMap::new (),
|
||||||
};
|
};
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Reference in New Issue