chore: fix typo

This commit is contained in:
梓澄 2024-01-13 17:53:17 +08:00 committed by GitHub
parent 0b50cda717
commit 65ad90a3cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')):
@ -244,4 +244,4 @@ if __name__ == "__main__":
pass
except:
logger.error('初始化出错,请检查日志')
logger.error(traceback.format_exc())
logger.error(traceback.format_exc())