From c9b489b5e316bfb226582c990b262469c5645fb8 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Tue, 9 Sep 2014 14:43:32 +0800 Subject: [PATCH] fix UDP --- shadowsocks/encrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/encrypt.py b/shadowsocks/encrypt.py index 1156d89..3537d00 100644 --- a/shadowsocks/encrypt.py +++ b/shadowsocks/encrypt.py @@ -224,7 +224,7 @@ def encrypt_all(password, method, op, data): if method == 'salsa20-ctr': cipher = encrypt_salsa20.Salsa20Cipher(method, key, iv, op) elif method == 'rc4-sha256': - return encrypt_rc4_sha256.create_cipher(method, key, iv, op) + cipher = encrypt_rc4_sha256.create_cipher(method, key, iv, op) else: cipher = M2Crypto.EVP.Cipher(method.replace('-', '_'), key, iv, op, key_as_bytes=0, d='md5',