Skip to content

Commit

Permalink
fix: client spitting
Browse files Browse the repository at this point in the history
  • Loading branch information
skifli authored Oct 1, 2024
1 parent 3e5dd63 commit 7a1380f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bruty_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bruty_client"
authors = ["skifli"]
version = "0.2.7"
version = "0.2.8"
edition = "2021"

[dependencies]
Expand Down
7 changes: 2 additions & 5 deletions bruty_client/src/client_threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ pub async fn id_checker(
.await;

if response.is_err() {
log::warn!(
"Error occurred while requesting {} check ({}).",
id_str,
response.as_ref().unwrap_err()
);
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;

continue;
}

Expand Down
2 changes: 1 addition & 1 deletion bruty_server/src/payload_handlers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{SplitSinkExt, WebSocketSender};
use futures_util::SinkExt;

const ALLOWED_CLIENT_VERSIONS: &[&str] = &["0.2.7"];
const ALLOWED_CLIENT_VERSIONS: &[&str] = &["0.2.8"];

/// Checks if the connection is authenticated.
/// If not, it sends an InvalidSession OP code and closes the connection.
Expand Down

0 comments on commit 7a1380f

Please sign in to comment.