url test is only valid for group not a single proxy
This commit is contained in:
@@ -112,7 +112,12 @@ class ProxyRepositoryImpl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TaskEither<ProxyFailure, Unit> urlTest(String groupTag) {
|
TaskEither<ProxyFailure, Unit> urlTest(String groupTag_) {
|
||||||
|
var groupTag = groupTag_;
|
||||||
|
if (!["auto", "select"].contains(groupTag)) {
|
||||||
|
loggy.warning("only proxy group can do url test");
|
||||||
|
groupTag = "select";
|
||||||
|
}
|
||||||
return exceptionHandler(
|
return exceptionHandler(
|
||||||
() => singbox.urlTest(groupTag).mapLeft(ProxyUnexpectedFailure.new).run(),
|
() => singbox.urlTest(groupTag).mapLeft(ProxyUnexpectedFailure.new).run(),
|
||||||
ProxyUnexpectedFailure.new,
|
ProxyUnexpectedFailure.new,
|
||||||
|
|||||||
Reference in New Issue
Block a user