From 4522797a0cf378cc44485ed77a01dee9643b6ebe Mon Sep 17 00:00:00 2001 From: bndw Date: Sat, 7 Mar 2026 18:34:25 -0800 Subject: Make allowed event kinds configurable Replaces hardcoded kind allowlist in isAllowedKind with a configurable allowed_kinds list in relay config. Empty list allows all kinds. Default matches previous hardcoded list. Wired through SetAllowedKinds on the handler. --- cmd/relay/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/relay') diff --git a/cmd/relay/main.go b/cmd/relay/main.go index 78ee469..601b2e8 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go @@ -123,6 +123,7 @@ func main() { Contact: cfg.Relay.Contact, Icon: cfg.Relay.Icon, }) + wsHandler.SetAllowedKinds(cfg.Relay.AllowedKinds) if cfg.Auth.Read.Enabled || cfg.Auth.Write.Enabled { wsHandler.SetAuth(store) -- cgit v1.2.3