mirror of
https://github.com/pldubouilh/blockfast.git
synced 2026-08-27 20:36:34 -04:00
fixup readme & bump rust release
This commit is contained in:
committed by
Pierre Dubouilh
parent
9d0bc470cc
commit
43392ace03
@@ -8,7 +8,12 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Format
|
||||
run: rustup component add rustfmt clippy
|
||||
|
||||
- name: Run CI
|
||||
run: make ci
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Format
|
||||
run: rustup component add rustfmt clippy
|
||||
|
||||
- name: Run tests
|
||||
run: make ci
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ Example:
|
||||
./blockfast --generic-logpath=/tmp/generictest --generic-positive='Failed password' --generic-ip='from ([0-9a-fA-F:.]+) port'
|
||||
|
||||
Usage: blockfast [OPTIONS]
|
||||
Usage: blockfast [OPTIONS]
|
||||
|
||||
Options:
|
||||
--jailtime <JAILTIME>
|
||||
@@ -60,7 +59,7 @@ Options:
|
||||
-c, --clf-logpath <CLF_LOGPATH>
|
||||
path of Common-Log-Format logfile (Apache, etc..)
|
||||
-j, --json-logpath <JSON_LOGPATH>
|
||||
path of JSON HTTP logfile (Caddy)
|
||||
path of JSON logfile (works with Caddy)
|
||||
--generic-logpath <GENERIC_LOGPATH>
|
||||
generic parser log file path
|
||||
--generic-ip <GENERIC_IP>
|
||||
@@ -69,8 +68,8 @@ Options:
|
||||
generic parser positive - if a logline contains this, it is considered bad, the rest is good
|
||||
--generic-negative <GENERIC_NEGATIVE>
|
||||
generic parser negative - if a logline contains this, it is considered good, the rest is bad
|
||||
--valid-http-statuses <VALID_HTTP_STATUSES>
|
||||
valid http statuses (for CLF and JSON logs) [default: 200 101]
|
||||
--invalid-http-statuses <INVALID_HTTP_STATUSES>
|
||||
invalid http statuses (for CLF and JSON logs). Coma separated list, accepts ranges with XX [default: 400,401,402,403]
|
||||
-h, --help
|
||||
Print help
|
||||
-V, --version
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "1.81.0"
|
||||
channel = "1.95.0"
|
||||
+1
-3
@@ -116,7 +116,5 @@ async fn run() -> Result<()> {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
run().await?;
|
||||
eprintln!("\n");
|
||||
Ok(())
|
||||
run().await
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ Example:
|
||||
verbatim_doc_comment,
|
||||
group(ArgGroup::new("generic_match").args(["generic_positive", "generic_negative"])),
|
||||
)]
|
||||
|
||||
pub struct Args {
|
||||
/// jail time (seconds)
|
||||
#[clap(long, default_value = "21600")]
|
||||
|
||||
Reference in New Issue
Block a user