Merge branch 'develop' into idac

This commit is contained in:
Dniel97
2024-04-01 20:09:34 +02:00
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ class Utils:
@classmethod
def get_ip_addr(cls, req: Request) -> str:
return req.headers.get("x-forwarded-for", req.client.host)
ip = req.headers.get("x-forwarded-for", req.client.host)
return ip.split(", ")[0]
@classmethod
def get_title_port(cls, cfg: CoreConfig):