Skip to content

Commit

Permalink
Case-insensitive bot matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jan 16, 2022
1 parent 5771cc7 commit 0becfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Run(c cache.Cache) error {

handler := ws.HandleFastHTTP
if viper.GetString("bot.proxy") != "" {
r, err := regexp.Compile(viper.GetString("bot.agents"))
r, err := regexp.Compile(`(?i)` + viper.GetString("bot.agents"))
if err != nil {
return errors.Wrap(err, "failed to compile bot proxy regex")
}
Expand Down

0 comments on commit 0becfdd

Please sign in to comment.