udp server works
This commit is contained in:
parent
041c315f86
commit
1ed149a46a
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue