Added github integration

This commit is contained in:
2025-12-02 14:32:10 +00:00
parent b6dd8b8fe2
commit 4076c4bf83
762 changed files with 193089 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
from __future__ import annotations
from flask import request
def get_remote_address_cloudflare() -> str:
"""
:return: the ip address for the current request from the CF-Connecting-IP header
(or 127.0.0.1 if none found)
"""
return request.headers["CF-Connecting-IP"] or "127.0.0.1"