mirror of
https://github.com/MeexReay/sRAC.git
synced 2025-06-24 02:22:57 +03:00
update bRAC commit id
This commit is contained in:
parent
83d1726969
commit
a5120ddb82
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -114,7 +114,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "bRAC"
|
name = "bRAC"
|
||||||
version = "0.1.5+2.0"
|
version = "0.1.5+2.0"
|
||||||
source = "git+https://github.com/MeexReay/bRAC?rev=5b23a3bd#5b23a3bd703954e655e1b465679698eca8ceefe6"
|
source = "git+https://github.com/MeexReay/bRAC?rev=f3b6cbd01c5443e03d012c3c866487ba19785baf#f3b6cbd01c5443e03d012c3c866487ba19785baf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -18,5 +18,5 @@ lazy_static = "1.5.0"
|
|||||||
|
|
||||||
[dependencies.bRAC]
|
[dependencies.bRAC]
|
||||||
git = "https://github.com/MeexReay/bRAC"
|
git = "https://github.com/MeexReay/bRAC"
|
||||||
rev = "5b23a3bd"
|
rev = "f3b6cbd01c5443e03d012c3c866487ba19785baf"
|
||||||
default-features = false
|
default-features = false
|
18
src/logic.rs
18
src/logic.rs
@ -73,14 +73,16 @@ pub fn on_chunked_data(
|
|||||||
client_has: u64,
|
client_has: u64,
|
||||||
) -> Result<Vec<u8>, Box<dyn Error>> {
|
) -> Result<Vec<u8>, Box<dyn Error>> {
|
||||||
if let Some(url) = ctx.args.proxy_to.as_ref() {
|
if let Some(url) = ctx.args.proxy_to.as_ref() {
|
||||||
return read_messages(
|
return dbg!(
|
||||||
&mut connect(url, ctx.args.use_proxy.clone())?,
|
read_messages(
|
||||||
1024, // TODO: softcode this
|
&mut connect(url, ctx.args.use_proxy.clone())?,
|
||||||
client_has as usize,
|
1024, // TODO: softcode this
|
||||||
true,
|
client_has as usize,
|
||||||
)?
|
true,
|
||||||
.map(|o| (o.0.join("\n") + "\n").as_bytes().to_vec())
|
)?
|
||||||
.ok_or("err on reading in proxy mode".into());
|
.map(|o| (o.0.join("\n") + "\n").as_bytes().to_vec())
|
||||||
|
.ok_or("err on reading in proxy mode".into())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let messages = ctx.messages.read().unwrap().clone();
|
let messages = ctx.messages.read().unwrap().clone();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user