udp server works

This commit is contained in:
clowwindy 2014-04-23 22:44:10 +08:00
parent 041c315f86
commit 1ed149a46a

View file

@ -174,7 +174,11 @@ class UDPRelay(object):
else:
# drop
return
self._eventloop.add(client, eventloop.MODE_IN)
self._eventloop.add(client, eventloop.MODE_IN)
data = data[header_length:]
if not data:
return
if self._is_local:
data = encrypt.encrypt_all(self._password, self._method, 1, data)
if not data: