From 11ec3a16a1784183757139c49837376fc1684118 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Tue, 9 Apr 2024 03:52:10 +0200 Subject: [PATCH] FATAL:fixed encoding bug for nfregex that was blocking this function! --- backend/modules/nfregex/models.py | 1 + start.py | 2 +- tests/run_tests.sh | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/modules/nfregex/models.py b/backend/modules/nfregex/models.py index df39f37..b81365a 100644 --- a/backend/modules/nfregex/models.py +++ b/backend/modules/nfregex/models.py @@ -27,4 +27,5 @@ class Regex: @classmethod def from_dict(cls, var: dict): + var['regex'] = base64.b64decode(var['regex']) return cls(**var) \ No newline at end of file diff --git a/start.py b/start.py index e9aeaa2..e348b22 100755 --- a/start.py +++ b/start.py @@ -83,7 +83,7 @@ services: firewall: restart: unless-stopped container_name: firegex - {"build: ." if args.build else "image: ghcr.io/pwnzer0tt1/firegex"} + {"build: ." if args.build else "image: ghcr.io/pwnzer0tt1/firegex:2.2.5"} network_mode: "host" environment: - PORT={args.port} diff --git a/tests/run_tests.sh b/tests/run_tests.sh index c825e83..ae183e2 100644 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,5 +1,7 @@ #!/bin/sh +cd "$(dirname "$0")" + TMP=$1 PASSWORD=${TMP:=testpassword}