mirror of
https://github.com/NohamR/trio_http_proxy.git
synced 2025-05-24 00:59:27 +00:00
Update trio_http_proxy.py
This commit is contained in:
parent
a258f92208
commit
88852e274c
@ -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.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user