mirror of
https://github.com/pldubouilh/blockfast.git
synced 2026-08-31 06:16:56 -04:00
customizable http statuses
This commit is contained in:
+5
-4
@@ -18,6 +18,11 @@ async fn run() -> Result<()> {
|
||||
let args = utils::Args::parse();
|
||||
let mut ml = MuxedLines::new()?;
|
||||
|
||||
// HTTP statuses
|
||||
let ok_statuses = args.valid_http_statuses.clone();
|
||||
let ok_statuses_parsed = parse_statuses(&ok_statuses)?;
|
||||
let ok_statuses_ref = ok_statuses_parsed.as_ref();
|
||||
|
||||
// generic parser
|
||||
let generic_path = args.generic_logpath.as_ref();
|
||||
let generic_ip_re = args.generic_ip.as_ref();
|
||||
@@ -65,10 +70,6 @@ async fn run() -> Result<()> {
|
||||
bail!("no log files to parse, see --help");
|
||||
}
|
||||
|
||||
// HTTP statuses
|
||||
let ok_statuses = args.valid_http_statuses.clone();
|
||||
let ok_statuses_ref = ok_statuses.as_ref();
|
||||
|
||||
// jail
|
||||
let jail = Jail::new(args.allowance, args.jailtime)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user