feat: auto close connection when proxy changed
This commit is contained in:
@@ -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
src/services/types.d.ts
vendored
2
src/services/types.d.ts
vendored
@@ -165,6 +165,8 @@ declare namespace CmdType {
|
||||
font_family?: string;
|
||||
css_injection?: string;
|
||||
};
|
||||
auto_close_connection?: boolean;
|
||||
default_latency_test?: string;
|
||||
}
|
||||
|
||||
type ClashConfigValue = any;
|
||||
|
||||
Reference in New Issue
Block a user