Skip to content

Commit

Permalink
fix: ensure protocol filter is case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Sep 17, 2024
1 parent a4e9def commit da4a194
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routing/http/server/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ func applyProtocolFilter(peerProtocols []string, filterProtocols []string) bool
}

for _, peerProtocol := range peerProtocols {
if peerProtocol == filterProtocol {
if strings.EqualFold(peerProtocol, filterProtocol) {
return true
}

}
}
return false
Expand Down

0 comments on commit da4a194

Please sign in to comment.