Fix: parse error in proxyGroupsDagSort (#298)

This commit is contained in:
Comzyh
2019-09-13 15:04:51 +08:00
committed by Dreamacro
parent 112b3e5a6c
commit b3e10c05e6
3 changed files with 23 additions and 16 deletions

View File

@ -193,3 +193,9 @@ func (p *Proxy) URLTest(ctx context.Context, url string) (t uint16, err error) {
func NewProxy(adapter C.ProxyAdapter) *Proxy {
return &Proxy{adapter, queue.New(10), true}
}
// ProxyGroupOption contain the common options for all kind of ProxyGroup
type ProxyGroupOption struct {
Name string `proxy:"name"`
Proxies []string `proxy:"proxies"`
}