diff options
| author | Bobby <[email protected]> | 2024-07-24 15:31:21 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-07-24 15:31:21 +0000 |
| commit | 164950f013807651da5dca224a70fadef6986953 (patch) | |
| tree | 2c135d8e454912773abed68dd9af3f75f1c624e8 /middleware | |
| parent | abf21a54910fc420686a821d290b7eed8f7b0e64 (diff) | |
| download | thatcomputerscientist-164950f013807651da5dca224a70fadef6986953.tar.xz thatcomputerscientist-164950f013807651da5dca224a70fadef6986953.zip | |
127.0.0.1 excluded from local ignis; custom scrollbar in code blocks
Diffstat (limited to 'middleware')
| -rw-r--r-- | middleware/ignismiddleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/ignismiddleware.py b/middleware/ignismiddleware.py index 2b51a740..85c2c0e2 100644 --- a/middleware/ignismiddleware.py +++ b/middleware/ignismiddleware.py @@ -25,8 +25,8 @@ class IgnisMiddleware(MiddlewareMixin): def __call__(self, request): response = self.get_response(request) - # id request is from localhost, do not process - if re.match(r"^localhost", request.get_host()): + # id request is from localhost or 127.0.0.1, do not process + if re.match(r"^localhost", request.get_host()) or re.match(r"^127.0.0.1", request.get_host()): return response # Do not process non-HTML responses |
