fix: UrlTest's torch not work

close #232
This commit is contained in:
wwqgtxx
2022-10-31 16:45:14 +08:00
parent a7aa5fd523
commit 972d3f1d39
3 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,12 @@ func NewGroupBase(opt GroupBaseOption) *GroupBase {
return gb
}
func (gb *GroupBase) Touch() {
for _, pd := range gb.providers {
pd.Touch()
}
}
func (gb *GroupBase) GetProxies(touch bool) []C.Proxy {
if len(gb.filterRegs) == 0 {
var proxies []C.Proxy