|
@ -229,7 +229,7 @@ class UDPRelay(object): |
|
|
if header_result is None: |
|
|
if header_result is None: |
|
|
return |
|
|
return |
|
|
# addrtype, dest_addr, dest_port, header_length = header_result |
|
|
# addrtype, dest_addr, dest_port, header_length = header_result |
|
|
response = '\x00\x00\x00' + data |
|
|
response = b'\x00\x00\x00' + data |
|
|
client_addr = self._client_fd_to_server_addr.get(sock.fileno()) |
|
|
client_addr = self._client_fd_to_server_addr.get(sock.fileno()) |
|
|
if client_addr: |
|
|
if client_addr: |
|
|
self._server_socket.sendto(response, client_addr) |
|
|
self._server_socket.sendto(response, client_addr) |
|
|