dane w headerach i inne funkcje
This commit is contained in:
@@ -44,9 +44,9 @@ async def root(request: Request):
|
||||
ip = get_client_ip(request).strip()
|
||||
|
||||
if any(x in ua for x in ["mozilla", "chrome", "safari", "edge", "firefox"]):
|
||||
return Response(status_code=404)
|
||||
return JSONResponse({"detail": "Not Found"}, status_code=404)
|
||||
|
||||
return PlainTextResponse(ip)
|
||||
return PlainTextResponse(ip + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user