Should fix redirector
All checks were successful
Build dev on push / build-redirector (push) Successful in 45s
Build dev on push / build-api (push) Successful in 46s
Build dev on push / build-web (push) Successful in 49s

This commit is contained in:
Sven Heidemann 2025-01-16 17:11:28 +01:00
parent b71b68d2c3
commit ebf5c615ed
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ async def _handle_request(path: str):
host = request.host
if ":" in host:
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
user_agent = request.headers.get("User-Agent", "").lower()

View File

@ -1 +1 @@
1.2.3
1.2.4