refactor: ui refresh

This commit is contained in:
zhom
2026-07-18 11:42:07 +04:00
parent 4f7910dd23
commit f1664b2950
64 changed files with 7472 additions and 2827 deletions
+8
View File
@@ -163,6 +163,12 @@ async fn main() {
.long("blocklist-file")
.help("Path to DNS blocklist file (one domain per line)"),
)
.arg(
Arg::new("dns-allowlist-mode")
.long("dns-allowlist-mode")
.num_args(0)
.help("Treat --blocklist-file as an allowlist (block all domains not listed)"),
)
.arg(
Arg::new("local-protocol")
.long("local-protocol")
@@ -256,6 +262,7 @@ async fn main() {
.and_then(|s| serde_json::from_str(s).ok())
.unwrap_or_default();
let blocklist_file = start_matches.get_one::<String>("blocklist-file").cloned();
let dns_allowlist_mode = start_matches.get_flag("dns-allowlist-mode");
let local_protocol = start_matches.get_one::<String>("local-protocol").cloned();
match start_proxy_process_with_profile(
@@ -264,6 +271,7 @@ async fn main() {
profile_id,
bypass_rules,
blocklist_file,
dns_allowlist_mode,
local_protocol,
)
.await