Skip to content

Commit

Permalink
Fix broken comparison for rate limiting header
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jun 30, 2023
1 parent e812700 commit fcf22db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func server(jobsystem JobSystem, config ConfigRoot) {
SetBurst(config.Server.RateLimit.Burst).
SetMessageContentType("application/json; charset=utf-8").
SetMessage(string(b))
if config.Server.RateLimit.IpLookupHeader == "" {
if config.Server.RateLimit.IpLookupHeader != "" {
lmt.SetIPLookups([]string{config.Server.RateLimit.IpLookupHeader})
}
if config.App == AppMMseqs2 || config.App == AppFoldSeek {
Expand Down

0 comments on commit fcf22db

Please sign in to comment.