From 036f65b179fbf64da8160942c208712e5c565f65 Mon Sep 17 00:00:00 2001 From: Cytown Date: Mon, 13 Apr 2026 23:34:44 +0800 Subject: [PATCH] bug fix for allowFrom contains empty string --- pkg/channels/base.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/channels/base.go b/pkg/channels/base.go index bd4ced849..04220f970 100644 --- a/pkg/channels/base.go +++ b/pkg/channels/base.go @@ -103,6 +103,16 @@ func NewBaseChannel( allowList []string, opts ...BaseChannelOption, ) *BaseChannel { + isEmpty := true + for _, s := range allowList { + if s != "" { + isEmpty = false + break + } + } + if isEmpty { + allowList = []string{} + } bc := &BaseChannel{ config: config, bus: bus,