fix: init config file

This commit is contained in:
GyDi
2022-11-22 22:01:19 +08:00
parent 05190a52f1
commit 1328299fda
2 changed files with 35 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ impl IClashTemp {
map.insert("external-controller".into(), "127.0.0.1:9090".into());
map.insert("secret".into(), "".into());
Self(Self::guard(map))
Self(map)
}
fn guard(mut config: Mapping) -> Mapping {
@@ -57,10 +57,6 @@ impl IClashTemp {
)
}
// pub fn get_info(&self) -> ClashInfo {
// self.1.clone()
// }
pub fn get_mixed_port(&self) -> u16 {
Self::guard_mixed_port(&self.0)
}