Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
03bec6b0
Commit
03bec6b0
authored
Jun 03, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Argh mixed up all the negatives
parent
1fab5832
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/auth/rate_limiter.rb
lib/gitlab/auth/rate_limiter.rb
+2
-2
No files found.
lib/gitlab/auth/rate_limiter.rb
View file @
03bec6b0
...
@@ -20,7 +20,7 @@ module Gitlab
...
@@ -20,7 +20,7 @@ module Gitlab
# Allow2Ban.filter will return false if this IP has not failed too often yet
# Allow2Ban.filter will return false if this IP has not failed too often yet
@banned
=
Rack
::
Attack
::
Allow2Ban
.
filter
(
ip
,
config
)
do
@banned
=
Rack
::
Attack
::
Allow2Ban
.
filter
(
ip
,
config
)
do
# If we return false here, the failure for this IP is ignored by Allow2Ban
# If we return false here, the failure for this IP is ignored by Allow2Ban
i
gnore_failure
?
i
p_can_be_banned
?
end
end
end
end
...
@@ -34,7 +34,7 @@ module Gitlab
...
@@ -34,7 +34,7 @@ module Gitlab
Gitlab
.
config
.
rack_attack
.
git_basic_auth
Gitlab
.
config
.
rack_attack
.
git_basic_auth
end
end
def
i
gnore_failure
?
def
i
p_can_be_banned
?
config
.
ip_whitelist
.
exclude?
(
ip
)
config
.
ip_whitelist
.
exclude?
(
ip
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment