Browse Source

udp fix sendto argv

dev
breakwa11 10 years ago
parent
commit
07dc98f60d
  1. 2
      shadowsocks/tcprelay.py

2
shadowsocks/tcprelay.py

@ -209,7 +209,7 @@ class TCPRelayHandler(object):
if addrs: if addrs:
af, socktype, proto, canonname, server_addr = addrs[0] af, socktype, proto, canonname, server_addr = addrs[0]
data = data[header_length:] data = data[header_length:]
sock.sendto(data, server_addr) sock.sendto(data, (server_addr[0], dest_port))
except Exception as e: except Exception as e:
trace = traceback.format_exc() trace = traceback.format_exc()

Loading…
Cancel
Save