做了一些小修改
This commit is contained in:
@@ -3,5 +3,6 @@
|
|||||||
"server_port": "33009",
|
"server_port": "33009",
|
||||||
"proxy_url": "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json",
|
"proxy_url": "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json",
|
||||||
"username_prefix": "Nikke_",
|
"username_prefix": "Nikke_",
|
||||||
"count": 300
|
"count": 300,
|
||||||
|
"reco_words": ["验证程序已启用","AntiAttack"]
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@ pub struct Configuration {
|
|||||||
username_prefix: String,
|
username_prefix: String,
|
||||||
count: i32,
|
count: i32,
|
||||||
proxy_url: String,
|
proxy_url: String,
|
||||||
|
reco_words: Vec<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Configuration {
|
impl Configuration {
|
||||||
@@ -46,6 +47,7 @@ impl Configuration {
|
|||||||
username_prefix: "".to_string(),
|
username_prefix: "".to_string(),
|
||||||
count: 300,
|
count: 300,
|
||||||
proxy_url: "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json".to_string(),
|
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()],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ async fn main() {
|
|||||||
let configuration = Configuration::new("config.json");
|
let configuration = Configuration::new("config.json");
|
||||||
let configuration_rc = Arc::new(configuration);
|
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 lock_clone = thread_lock.clone();
|
||||||
let configuration_rc_clone = configuration_rc.clone();
|
let configuration_rc_clone = configuration_rc.clone();
|
||||||
// let handle = tokio::spawn(async move {
|
// let handle = tokio::spawn(async move {
|
||||||
|
|||||||
Reference in New Issue
Block a user