Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jschan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
myumyu
jschan
Commits
32e0ca7d
Commit
32e0ca7d
authored
2 years ago
by
Thomas Lynch
Browse files
Options
Downloads
Patches
Plain Diff
remove debug, update comment
parent
24a8f5ae
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/posts.js
+0
-1
0 additions, 1 deletion
db/posts.js
models/forms/banposter.js
+1
-2
1 addition, 2 deletions
models/forms/banposter.js
with
1 addition
and
3 deletions
db/posts.js
+
0
−
1
View file @
32e0ca7d
...
...
@@ -711,7 +711,6 @@ module.exports = {
hotThreads
:
async
()
=>
{
const
{
hotThreadsLimit
,
hotThreadsThreshold
}
=
config
.
get
;
console
.
log
(
hotThreadsLimit
,
hotThreadsThreshold
)
if
(
hotThreadsLimit
===
0
){
//0 limit = no limit in mongodb
return
[];
}
...
...
This diff is collapsed.
Click to expand it.
models/forms/banposter.js
+
1
−
2
View file @
32e0ca7d
...
...
@@ -23,12 +23,11 @@ module.exports = async (req, res, next) => {
return
acc
;
},
{});
for
(
let
ip
in
ipPosts
)
{
//should we at some point filter these to not bother banning pruned ips?
const
banType
=
ip
.
endsWith
(
'
.IP
'
)
?
0
:
ip
.
endsWith
(
'
.BP
'
)
?
1
:
2
;
const
thisIpPosts
=
ipPosts
[
ip
];
/* should we at some point filter these to not bother banning pruned ips,
and/or not range banning bypasses (since it does nothing)? */
let
banRange
=
0
;
let
banIp
=
{
cloak
:
thisIpPosts
[
0
].
ip
.
cloak
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment