mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 01:38:30 +02:00
implement godoxy-agent
This commit is contained in:
@@ -287,6 +287,9 @@ func (cfg *Config) loadRouteProviders(providers *types.Providers) E.Error {
|
||||
lenLongestName = len(p.String())
|
||||
}
|
||||
}
|
||||
for _, agent := range providers.Agents {
|
||||
cfg.providers.Store(agent.Name(), proxy.NewAgentProvider(&agent))
|
||||
}
|
||||
cfg.providers.RangeAllParallel(func(_ string, p *proxy.Provider) {
|
||||
if err := p.LoadRoutes(); err != nil {
|
||||
errs.Add(err.Subject(p.String()))
|
||||
|
||||
Reference in New Issue
Block a user