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:
Lucas RayanandClaude Sonnet 5.5 committed 2026-11-16 20:27:18 -03:00
1 parent 19afd221e2
commit 7b90d9e40f
15 files changed
+329 -85

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ func (s *Server) geoAPI(w http.ResponseWriter, r *http.Request) {
if host == "" {
host = "all"
}
if host != "all" && host != s.opt.Store.Name() && (s.opt.Hub == nil || !s.opt.Hub.Has(host)) {
if _, ok := s.parseHosts(host); !ok {
writeJSON(w, http.StatusNotFound, map[string]string{"error": "unknown host"})
return
}