mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-12 09:47:51 +02:00
feat: extension management
This commit is contained in:
@@ -12,6 +12,8 @@ pub struct ProxyConfig {
|
||||
pub pid: Option<u32>,
|
||||
#[serde(default)]
|
||||
pub profile_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub bypass_rules: Vec<String>,
|
||||
}
|
||||
|
||||
impl ProxyConfig {
|
||||
@@ -24,6 +26,7 @@ impl ProxyConfig {
|
||||
local_url: None,
|
||||
pid: None,
|
||||
profile_id: None,
|
||||
bypass_rules: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +34,11 @@ impl ProxyConfig {
|
||||
self.profile_id = profile_id;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_bypass_rules(mut self, bypass_rules: Vec<String>) -> Self {
|
||||
self.bypass_rules = bypass_rules;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_storage_dir() -> PathBuf {
|
||||
|
||||
Reference in New Issue
Block a user