Skip to content

Commit

Permalink
config scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Oct 21, 2024
1 parent 91d4d06 commit 0d20316
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/bin/rrhttp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,27 @@ impl Request {
}
}

enum ConfigMode {
DefaultBlock,
DefaultAllow,
}

struct Config {
mode: ConfigMode,
permitlist: Vec<Request>,
}

impl Config {
fn new() -> Self {
Config {
mode: ConfigMode::DefaultAllow,
permitlist: vec![],
}
}

fn new_from_file(path: &str) -> Result<Self, Box<dyn std::error::Error>> {}
}

async fn x_to_y_nofilter(
prefix: String,
mut x: tokio::net::tcp::OwnedReadHalf,
Expand Down

0 comments on commit 0d20316

Please sign in to comment.