Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq authored Jan 13, 2024
1 parent 0b50cda commit 65ad90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def start_checkcn_thread() -> None:
async def handle_before_request(app, handler):
async def handle_request(request):
try:
if (config.read_config('common.reverse_proxy.enable')):
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 (request.remote in config.read_config('common.reverse_proxy.proxy_whitelist_remote')):
Expand Down Expand Up @@ -244,4 +244,4 @@ async def initMain():
pass
except:
logger.error('初始化出错,请检查日志')
logger.error(traceback.format_exc())
logger.error(traceback.format_exc())

0 comments on commit 65ad90a

Please sign in to comment.