Should fix redirector
This commit is contained in:
parent
b71b68d2c3
commit
ebf5c615ed
@ -41,7 +41,7 @@ async def _handle_request(path: str):
|
|||||||
host = request.host
|
host = request.host
|
||||||
if ":" in host:
|
if ":" in host:
|
||||||
host = host.split(":")[0]
|
host = host.split(":")[0]
|
||||||
if host not in domains or domain is not None and domain.name not in domains:
|
if host not in domains or (domain is not None and not any(host.endswith(d) for d in domains)):
|
||||||
return render_template("404.html"), 404
|
return render_template("404.html"), 404
|
||||||
|
|
||||||
user_agent = request.headers.get("User-Agent", "").lower()
|
user_agent = request.headers.get("User-Agent", "").lower()
|
||||||
|
@ -1 +1 @@
|
|||||||
1.2.3
|
1.2.4
|
Loading…
Reference in New Issue
Block a user