refactor: wip

This commit is contained in:
GyDi
2022-04-20 01:44:47 +08:00
parent 4371772ec7
commit 5edfd7b6f7
13 changed files with 419 additions and 939 deletions

View File

@@ -57,6 +57,8 @@ impl Service {
self.start()
}
/// update clash config
/// using PUT methods
pub fn set_config(&self, info: ClashInfo, config: Mapping, notice: Notice) -> Result<()> {
if self.sidecar.is_none() {
bail!("did not start sidecar");