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