mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 16:30:52 +08:00
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();
|
||||
|
||||
Reference in New Issue
Block a user