mirror of
https://github.com/NohamR/trio_http_proxy.git
synced 2026-05-24 20:00:54 +00:00
Update trio_http_proxy.py
This commit is contained in:
@@ -39,6 +39,7 @@ async def http_proxy(client_stream, client_address, _nextid=count(1).__next__):
|
|||||||
CV_CLIENT_STREAM.set(client_stream)
|
CV_CLIENT_STREAM.set(client_stream)
|
||||||
|
|
||||||
client_ip = client_address[0]
|
client_ip = client_address[0]
|
||||||
|
log('client_address: ', client_address)
|
||||||
|
|
||||||
if client_ip not in ALLOWED_IPS:
|
if client_ip not in ALLOWED_IPS:
|
||||||
log(f'Connection from {client_ip} is not allowed.')
|
log(f'Connection from {client_ip} is not allowed.')
|
||||||
|
|||||||
Reference in New Issue
Block a user