mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-24 10:52:58 +03:00
fix -r and -s with other args
This commit is contained in:
parent
c1e9d00d3a
commit
2accb6e73d
@ -25,6 +25,8 @@ fn main() {
|
|||||||
|
|
||||||
let mut config = load_config(config_path);
|
let mut config = load_config(config_path);
|
||||||
|
|
||||||
|
args.patch_config(&mut config);
|
||||||
|
|
||||||
if args.read_messages {
|
if args.read_messages {
|
||||||
let mut stream =
|
let mut stream =
|
||||||
connect(&config.host, config.proxy.clone()).expect("Error reading message");
|
connect(&config.host, config.proxy.clone()).expect("Error reading message");
|
||||||
@ -51,8 +53,6 @@ fn main() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
args.patch_config(&mut config);
|
|
||||||
|
|
||||||
let ctx = Arc::new(Context::new(&config));
|
let ctx = Arc::new(Context::new(&config));
|
||||||
|
|
||||||
run_main_loop(ctx.clone());
|
run_main_loop(ctx.clone());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user