diff --git a/main.py b/main.py index d0d2dec..b73abf7 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,7 @@ def get_ip() -> str: ip = (flask.request.headers.get("X-Real-IP") if REVERSE_PROXY else flask.request.remote_addr) or "0.0.0.0" if ":" in ip: - ip = ip[:20] + ":/64" + ip = ":".join(ip.split(":")[:4]) + "::/64" return ip