only allow clients that are already registered

This commit is contained in:
2023-07-09 00:43:52 +02:00
parent 76502f5e00
commit 7ba68cedbd
2 changed files with 34 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ use tokio::{
pub const REJECT_OOP: &[u8; 6] = b"\x04\x04oop\x00";
pub const REJECT_TIMEOUT: &[u8; 10] = b"\x04\x08timeout\x00";
pub const REJECT_UNKNOWN_CLIENT: &[u8; 17] = b"\x04\x0funknown client\x00";
#[derive(Debug)]
pub enum Error {