Skip to content

Commit

Permalink
Fix: pproxy changed their API without telling anyone (#27)
Browse files Browse the repository at this point in the history
This library doesn't have a changelog, and clearly it saw a need
to change the API without letting anyone know.
  • Loading branch information
TrueBrain authored Mar 3, 2021
1 parent 645efaa commit d185b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master_server/openttd/udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def error_received(self, exc):
def send_packet(self, socket_addr, data, new_connection=False):
if self.socks_proxy and new_connection:
# Modify the packet to have a SOCKS header with relay information.
data = self._socks_conn.prepare_udp_connection(socket_addr[0], socket_addr[1], data)
data = self._socks_conn.udp_prepare_connection(socket_addr[0], socket_addr[1], data)

response = asyncio.Future()
protocol = SocksProtocol(data, response.set_result)
Expand Down

0 comments on commit d185b6b

Please sign in to comment.