mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
21 lines
396 B
Go
21 lines
396 B
Go
|
package outboundgroup
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/Dreamacro/clash/adapters/provider"
|
||
|
C "github.com/Dreamacro/clash/constant"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
defaultGetProxiesDuration = time.Second * 5
|
||
|
)
|
||
|
|
||
|
func getProvidersProxies(providers []provider.ProxyProvider) []C.Proxy {
|
||
|
proxies := []C.Proxy{}
|
||
|
for _, provider := range providers {
|
||
|
proxies = append(proxies, provider.Proxies()...)
|
||
|
}
|
||
|
return proxies
|
||
|
}
|