TUN-3461: Show all origin services in the UI

This commit is contained in:
Adam Chalmers
2020-11-09 19:22:03 -06:00
parent 8c6181db9f
commit 4698ec8dee
4 changed files with 23 additions and 17 deletions

View File

@@ -114,13 +114,12 @@ func (ing Ingress) IsEmpty() bool {
}
// StartOrigins will start any origin services managed by cloudflared, e.g. proxy servers or Hello World.
func (ing Ingress) StartOrigins(wg *sync.WaitGroup, log logger.Service, shutdownC <-chan struct{}, errC chan error) error {
func (ing Ingress) StartOrigins(wg *sync.WaitGroup, log logger.Service, shutdownC <-chan struct{}, errC chan error) {
for _, rule := range ing.Rules {
if err := rule.Service.start(wg, log, shutdownC, errC, rule.Config); err != nil {
return err
log.Errorf("Error starting local service %s: %s", rule.Service, err)
}
}
return nil
}
// CatchAll returns the catch-all rule (i.e. the last rule)