mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: check access list in announce request handler
This commit is contained in:
parent
4fa199a1e0
commit
7fec41099b
4 changed files with 73 additions and 59 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue