Browse Source

do not destroy

dev
破娃酱 8 years ago
parent
commit
f22ef99d85
  1. 1
      shadowsocks/tcprelay.py

1
shadowsocks/tcprelay.py

@ -414,7 +414,6 @@ class TCPRelayHandler(object):
def _handle_server_dns_resolved(self, error, remote_addr, server_addr, data): def _handle_server_dns_resolved(self, error, remote_addr, server_addr, data):
if error: if error:
self.destroy()
return return
try: try:
addrs = socket.getaddrinfo(server_addr, remote_addr[1], 0, socket.SOCK_DGRAM, socket.SOL_UDP) addrs = socket.getaddrinfo(server_addr, remote_addr[1], 0, socket.SOCK_DGRAM, socket.SOL_UDP)

Loading…
Cancel
Save