From 77996682e9aca3a7a0e7423680d47401a053dee9 Mon Sep 17 00:00:00 2001 From: Tomasinjo Date: Sat, 1 Nov 2025 23:22:00 +0100 Subject: [PATCH] fixed persistant instance --- app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index dd6458e..6b7ad0c 100644 --- a/app/app.py +++ b/app/app.py @@ -41,6 +41,8 @@ class Persistent: def __init__(self): self.approved_ips = [] +p = Persistent() +save_whitelist() def is_share_link_valid(url: str) -> bool: status_code = requests.get(url).status_code @@ -91,6 +93,4 @@ def catch_all(path): if __name__ == "__main__": - p = Persistent() - save_whitelist() app.run(host='0.0.0.0') \ No newline at end of file