Fix table encryption with UDP
This commit is contained in:
parent
cb2e2ce0df
commit
9422ef2fd3
2 changed files with 5 additions and 2 deletions
3
CHANGES
3
CHANGES
|
@ -1,3 +1,6 @@
|
|||
2.0.3 2014-06-11
|
||||
- Fix table encryption with UDP
|
||||
|
||||
2.0.2 2014-06-11
|
||||
- Add asynchronous DNS in TCP relay
|
||||
|
||||
|
|
|
@ -201,9 +201,9 @@ def encrypt_all(password, method, op, data):
|
|||
if not method:
|
||||
[encrypt_table, decrypt_table] = init_table(password)
|
||||
if op:
|
||||
return string.translate(encrypt_table, data)
|
||||
return string.translate(data, encrypt_table)
|
||||
else:
|
||||
return string.translate(decrypt_table, data)
|
||||
return string.translate(data, decrypt_table)
|
||||
else:
|
||||
import M2Crypto.EVP
|
||||
result = []
|
||||
|
|
Loading…
Reference in a new issue