Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pyproxy/handlers/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ def transfer_data_between_sockets(self, client_socket, server_socket):
and "target_ip" not in self.active_connections[thread_id]
):
try:
peer = server_socket.getpeername()
if len(peer) == 2:
target_ip, target_port = peer
else:
target_ip, target_port, *_ = peer

target_ip, target_port = server_socket.getpeername()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line or you still get the problem.

self.active_connections[thread_id]["target_ip"] = target_ip
self.active_connections[thread_id]["target_port"] = target_port
Expand Down
Loading