Working on README. The relay will now error out if 2 servers share a tripcode

main
_ 2020-11-02 13:52:27 +00:00
parent 189ae7abd7
commit 903d5f338d
5 changed files with 12 additions and 0 deletions

View File

@ -397,6 +397,16 @@ pub async fn run_relay (
4000, 4000,
)); ));
{
let mut tripcode_set = HashSet::new ();
for (_, v) in state.config.server_tripcodes.iter () {
if ! tripcode_set.insert (v) {
panic! ("Two servers have the same tripcode. That is not allowed.");
}
}
}
eprintln! ("Loaded {} server tripcodes", state.config.server_tripcodes.len ()); eprintln! ("Loaded {} server tripcodes", state.config.server_tripcodes.len ());
let make_svc = make_service_fn (|_conn| { let make_svc = make_service_fn (|_conn| {

View File

@ -1,3 +1,5 @@
- Error out if 2 servers have the same tripcode
- Error out if a server has a weak password
- ETag cache - ETag cache
- Server-side hash? - Server-side hash?
- Log / audit log? - Log / audit log?