From 8aae1f07ca751a4604ca36ccbafb27d1d1dbd006 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Tue, 3 Jun 2014 23:44:49 +0800 Subject: [PATCH] warn table encryption --- shadowsocks/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shadowsocks/utils.py b/shadowsocks/utils.py index d1941f9..66e0dd6 100644 --- a/shadowsocks/utils.py +++ b/shadowsocks/utils.py @@ -61,6 +61,9 @@ def check_config(config): if config.get('server', '') in ['127.0.0.1', 'localhost']: logging.warn('warning: server set to listen %s:%s, are you sure?' % (config['server'], config['server_port'])) + if (config.get('method', '') or '').lower() == '': + logging.warn('warning: table is not safe; please use a safer cipher, ' + 'like AES-256-CFB') if (config.get('method', '') or '').lower() == 'rc4': logging.warn('warning: RC4 is not safe; please use a safer cipher, ' 'like AES-256-CFB')