feat: Support custom delay timeout (#397)

This commit is contained in:
MystiPanda authored and GitHub committed 2024-02-18 11:11:22 +08:00
1 parent 5106d77c77
commit d1d9620a61
12 files changed
+76 -21

No files matched your search

+2 -1
View File
@@ -25,6 +25,7 @@ export const ProxyGroups = (props: Props) => {
const { verge } = useVerge();
const { current, patchCurrent } = useProfiles();
const timeout = verge?.default_latency_timeout || 10000;
const virtuosoRef = useRef<VirtuosoHandle>(null);
@@ -83,7 +84,7 @@ export const ProxyGroups = (props: Props) => {
}
const names = proxies.filter((p) => !p!.provider).map((p) => p!.name);
await delayManager.checkListDelay(names, groupName);
await delayManager.checkListDelay(names, groupName, timeout);
onProxies();
});