Skip to content

Commit

Permalink
Fix bug (missing return) in main proxy handler
Browse files Browse the repository at this point in the history
  • Loading branch information
De117 committed Nov 16, 2022
1 parent 05026ee commit 8f2e9b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whitelisting_proxy/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ async def handle(stream: trio.SocketStream, is_whitelisted: Callable[[str, int],
host, port = parse_host_and_port(target_host)
except ValueError:
await w.send_error(400, f"Malformed hostname: {target_host!r}")
return

client_request_completed = True

Expand Down

0 comments on commit 8f2e9b3

Please sign in to comment.