From 2463660e9084693b7baf93d260d9da3882b7632e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=93=E6=BE=84qwq?= Date: Tue, 16 Apr 2024 01:49:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=85=AC=E7=BD=91=E8=BD=AC=E5=8F=91=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #51 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3196f3f..cbf2b20 100644 --- a/main.py +++ b/main.py @@ -71,7 +71,7 @@ async def handle_request(request): if (config.read_config('common.reverse_proxy.allow_proxy')): if (request.headers.get(config.read_config('common.reverse_proxy.real_ip_header'))): # proxy header - if (config.read_config('common.reverse_proxy.allow_public_ip') and (not utils.is_private_ip(request.remote))): + if (config.read_config('common.reverse_proxy.allow_public_ip') and (not utils.is_local_ip(request.remote))): request.remote_addr = request.headers.get( config.read_config('common.reverse_proxy.real_ip_header')) else: