Fix unselected proxy group delay issues
This commit is contained in:
@@ -26,6 +26,9 @@ proxyDelayTest(Proxy proxy, [String? testUrl]) async {
|
|||||||
final url = state.testUrl.getSafeValue(
|
final url = state.testUrl.getSafeValue(
|
||||||
appController.getRealTestUrl(testUrl),
|
appController.getRealTestUrl(testUrl),
|
||||||
);
|
);
|
||||||
|
if (state.proxyName.isEmpty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
appController.setDelay(
|
appController.setDelay(
|
||||||
Delay(
|
Delay(
|
||||||
url: url,
|
url: url,
|
||||||
@@ -51,6 +54,9 @@ delayTest(List<Proxy> proxies, [String? testUrl]) async {
|
|||||||
appController.getRealTestUrl(testUrl),
|
appController.getRealTestUrl(testUrl),
|
||||||
);
|
);
|
||||||
final name = state.proxyName;
|
final name = state.proxyName;
|
||||||
|
if (name.isEmpty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
appController.setDelay(
|
appController.setDelay(
|
||||||
Delay(
|
Delay(
|
||||||
url: url,
|
url: url,
|
||||||
|
|||||||
Reference in New Issue
Block a user