Skip to content

Commit 6a49b11

Browse files
committed
Fix server side filtering of non-encrypted messages
1 parent 7dfa1be commit 6a49b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/configuration.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ func (p *Plugin) setConfiguration(configuration *configuration) {
7575
MsgTypes := strings.Split(strings.TrimSpace(configuration.AlwaysAllowMsgTypes), ",")
7676
p.AlwaysAllowMsgTypes = make(map[string]bool)
7777
for _, v := range MsgTypes {
78-
p.AlwaysAllowMsgTypes[strings.TrimSpace(v)] = true
78+
v = strings.TrimSpace(v)
79+
if len(v) == 0 {
80+
continue
81+
}
82+
p.AlwaysAllowMsgTypes[v] = true
7983
}
8084
}
8185

0 commit comments

Comments
 (0)