mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix typo
This commit is contained in:
parent
54e3cf4bf7
commit
a0ad19888e
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ class WebhookRequestHandler(web.View):
|
||||||
if self.request.app.get('_check_ip', False):
|
if self.request.app.get('_check_ip', False):
|
||||||
ip_address, accept = self.check_ip()
|
ip_address, accept = self.check_ip()
|
||||||
if not accept:
|
if not accept:
|
||||||
log.warning(f"Blocking request from a unauthorized IP: {ip_address}")
|
log.warning(f"Blocking request from an unauthorized IP: {ip_address}")
|
||||||
raise web.HTTPUnauthorized()
|
raise web.HTTPUnauthorized()
|
||||||
|
|
||||||
# context.set_value('TELEGRAM_IP', ip_address)
|
# context.set_value('TELEGRAM_IP', ip_address)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue