feat: auto close connection when proxy changed

This commit is contained in:
GyDi committed 2022-11-10 01:27:05 +08:00
1 parent aa23ed892b
commit 32095daf90
9 files changed
+175 -3

No files matched your search

+6
View File
@@ -176,6 +176,12 @@ export async function providerHealthCheck(name: string) {
);
}
export async function getConnections() {
const instance = await getAxios();
const result = await instance.get("/connections");
return result as any as ApiType.Connections;
}
// Close specific connection
export async function deleteConnection(id: string) {
const instance = await getAxios();
+2
View File
@@ -165,6 +165,8 @@ declare namespace CmdType {
font_family?: string;
css_injection?: string;
};
auto_close_connection?: boolean;
default_latency_test?: string;
}
type ClashConfigValue = any;