Feature: add tolerance for url-test

This commit is contained in:
Dreamacro
2020-05-29 17:47:50 +08:00
parent 8d0c6c6e66
commit 5628f97da1
3 changed files with 45 additions and 3 deletions

View File

@ -101,7 +101,8 @@ func ParseProxyGroup(config map[string]interface{}, proxyMap map[string]C.Proxy,
var group C.ProxyAdapter
switch groupOption.Type {
case "url-test":
group = NewURLTest(groupName, providers)
opts := parseURLTestOption(config)
group = NewURLTest(groupName, providers, opts...)
case "select":
group = NewSelector(groupName, providers)
case "fallback":