From 394244a4cd1241cb9f841f3e61cc5ce346277b40 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 3 May 2022 06:09:02 +0200 Subject: [PATCH] sfd --- files/__main__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index b47aaac77..09e06c488 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -87,9 +87,7 @@ def before_request(): with open('site_settings.json', 'r') as f: app.config['SETTINGS'] = json.load(f) - if request.host != app.config["SERVER_NAME"]: - print(request.host, flush=True) - return {"error":"Unauthorized host provided."}, 401 + if request.host != app.config["SERVER_NAME"]: return {"error":"Unauthorized host provided."}, 401 if request.headers.get("CF-Worker"): return {"error":"Cloudflare workers are not allowed to access this website."}, 401 if not app.config['SETTINGS']['Bots'] and request.headers.get("Authorization"): abort(503)