From 8e9888e94af022f0eab4f0f8df979f54fd59f237 Mon Sep 17 00:00:00 2001 From: Zihaoxu2008 Date: Sat, 25 Jan 2025 11:56:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9A=E4=BA=86=E4=B8=80=E4=BA=9B=E5=B0=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 3 ++- src/configuration.rs | 2 ++ src/main.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 08f08c5..65aa924 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "server_port": "33009", "proxy_url": "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json", "username_prefix": "Nikke_", - "count": 300 + "count": 300, + "reco_words": ["验证程序已启用","AntiAttack"] } \ No newline at end of file diff --git a/src/configuration.rs b/src/configuration.rs index 61892b4..eaf1898 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -9,6 +9,7 @@ pub struct Configuration { username_prefix: String, count: i32, proxy_url: String, + reco_words: Vec } impl Configuration { @@ -46,6 +47,7 @@ impl Configuration { username_prefix: "".to_string(), count: 300, proxy_url: "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json".to_string(), + reco_words: vec!["AntiAttack".to_string()], } } diff --git a/src/main.rs b/src/main.rs index 8934f57..4538933 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,7 @@ async fn main() { let configuration = Configuration::new("config.json"); let configuration_rc = Arc::new(configuration); - for i in 0..configuration_rc.count() { + for _ in 0..configuration_rc.count() { let lock_clone = thread_lock.clone(); let configuration_rc_clone = configuration_rc.clone(); // let handle = tokio::spawn(async move {