summaryrefslogtreecommitdiff
path: root/internal/middleware/nollamas.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/middleware/nollamas.go')
-rw-r--r--internal/middleware/nollamas.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/middleware/nollamas.go b/internal/middleware/nollamas.go
index eedf3b9b7..914469a24 100644
--- a/internal/middleware/nollamas.go
+++ b/internal/middleware/nollamas.go
@@ -55,7 +55,7 @@ func NoLLaMas(
getInstanceV1 func(context.Context) (*apimodel.InstanceV1, gtserror.WithCode),
) gin.HandlerFunc {
- if !config.GetAdvancedScraperDeterrence() {
+ if !config.GetAdvancedScraperDeterrenceEnabled() {
// NoLLaMas middleware disabled.
return func(*gin.Context) {}
}
@@ -72,7 +72,7 @@ func NoLLaMas(
var nollamas nollamas
nollamas.seed = seed
nollamas.ttl = time.Hour
- nollamas.diff = 4
+ nollamas.diff = config.GetAdvancedScraperDeterrenceDifficulty()
nollamas.getInstanceV1 = getInstanceV1
nollamas.policy = cookiePolicy
return nollamas.Serve