mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 18:08:32 +08:00
feat: auto close connection when proxy changed
This commit is contained in:
1 parent
aa23ed892b
commit
32095daf90
9 files changed
+175
-3
No files matched your search
@@ -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();
|
||||
|
||||
Vendored
+2
@@ -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