fix: host filter accepts all and comma lists; hub no longer drops traefik lines after a copytruncate rotation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19afd221e2
commit
7b90d9e40f
15 files changed
+329
-85
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.lucasrguerra.dev.br/ciberfauna/urutau/internal/egress"
|
||||
"git.lucasrguerra.dev.br/ciberfauna/urutau/internal/enforce"
|
||||
@@ -139,7 +140,7 @@ func (s *Server) primaryName() string { return s.opt.Store.Name() }
|
||||
|
||||
// enforceFor returns the engine of a host ("" or the primary: the primary's).
|
||||
func (s *Server) enforceFor(host string) *enforce.Engine {
|
||||
if host == "" || host == s.primaryName() || s.opt.Nodes == nil {
|
||||
if host == "" || strings.Contains(host, ",") || host == s.primaryName() || s.opt.Nodes == nil {
|
||||
return enforceEngine.Load()
|
||||
}
|
||||
return s.opt.Nodes.Enforce(host)
|
||||
|
||||
Reference in new issue
Block a user