aquatic_http: check access list in announce request handler

This commit is contained in:
Joakim Frostegård 2021-10-15 22:49:07 +02:00
parent 4fa199a1e0
commit 7fec41099b
4 changed files with 73 additions and 59 deletions

View file

@ -135,6 +135,12 @@ pub struct FailureResponse {
}
impl FailureResponse {
pub fn new(reason: &str) -> Self {
Self {
failure_reason: reason.into()
}
}
fn write<W: Write>(&self, output: &mut W) -> ::std::io::Result<usize> {
let mut bytes_written = 0usize;