update for 1.8.1
This commit is contained in:
parent
a27ccc28a1
commit
134c426e90
884
Cargo.lock
generated
884
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
12
Cargo.toml
12
Cargo.toml
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ipblc"
|
||||
version = "1.8.0"
|
||||
version = "1.8.1"
|
||||
edition = "2021"
|
||||
authors = ["PaulBSD <paul@paulbsd.com>"]
|
||||
description = "ipblc is a tool that search and send attacking ip addresses to ipbl"
|
||||
@ -12,18 +12,18 @@ repository = "https://git.paulbsd.com/paulbsd/ipblc"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
clap = { version = "4.5", features = ["string"] }
|
||||
git-version = "0.3"
|
||||
ipnet = "2.10"
|
||||
ipnet = "2.11"
|
||||
lazy_static = "1.5"
|
||||
nix = { version = "0.29", features = ["hostname", "inotify"] }
|
||||
nix = { version = "0.30", features = ["hostname", "inotify"] }
|
||||
regex = "1.11"
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
rustables = "0.8.5"
|
||||
rustables = "0.8.6"
|
||||
rustables-macros = "0.1.2"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
sd-notify = { version = "0.4" }
|
||||
tokio = { version = "1.41", features = ["full", "sync"] }
|
||||
tungstenite = { version = "0.24", features = ["handshake", "rustls-tls-native-roots"] }
|
||||
tokio = { version = "1.45", features = ["full", "sync"] }
|
||||
tungstenite = { version = "0.26", features = ["handshake", "rustls-tls-native-roots"] }
|
||||
|
||||
## to optimize binary size (slow compile time)
|
||||
#[profile.release]
|
||||
|
@ -102,7 +102,7 @@ pub async fn websocketconnect<'a>(
|
||||
}
|
||||
println!("connected to {endpoint}");
|
||||
let msg = json!({ "hostname": hostname });
|
||||
socket.send(Message::Text(msg.to_string())).unwrap();
|
||||
socket.send(Message::Text(msg.to_string().into())).unwrap();
|
||||
Ok(socket)
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ pub async fn send_to_ipbl_websocket(
|
||||
let msg = format!("{val}", val = serde_json::to_string(&ip).unwrap());
|
||||
|
||||
if ws.can_write() {
|
||||
match ws.send(Message::Text(msg)) {
|
||||
match ws.send(Message::Text(msg.into())) {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
println!("err send read: {e:?}");
|
||||
|
Loading…
Reference in New Issue
Block a user