From 83c8c3606a6b3374cef5ca0ab9839f778ffcbaed Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 16 Dec 2025 01:26:00 -0500 Subject: [PATCH] fix(lib): use mazeGen instead of bsGen Signed-off-by: Xe Iaso --- lib/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config.go b/lib/config.go index 75a50325..cb98e8a0 100644 --- a/lib/config.go +++ b/lib/config.go @@ -176,14 +176,14 @@ func New(opts Options) (*Server, error) { registerWithPrefix(anubis.APIPrefix+"check", http.HandlerFunc(result.maybeReverseProxyHttpStatusOnly), "") registerWithPrefix("/", http.HandlerFunc(result.maybeReverseProxyOrPage), "") - bsgen, err := naive.New(result.store, result.logger) + mazeGen, err := naive.New(result.store, result.logger) if err == nil { - registerWithPrefix(anubis.APIPrefix+"honeypot/{id}/{stage}", bsgen, http.MethodGet) + registerWithPrefix(anubis.APIPrefix+"honeypot/{id}/{stage}", mazeGen, http.MethodGet) opts.Policy.Bots = append( opts.Policy.Bots, policy.Bot{ - Rules: bsgen.CheckNetwork(), + Rules: mazeGen.CheckNetwork(), Action: config.RuleWeigh, Weight: &config.Weight{ Adjust: 30, @@ -191,7 +191,7 @@ func New(opts Options) (*Server, error) { Name: "honeypot/network", }, policy.Bot{ - Rules: bsgen.CheckUA(), + Rules: mazeGen.CheckUA(), Action: config.RuleWeigh, Weight: &config.Weight{ Adjust: 30,