warn table encryption

This commit is contained in:
clowwindy 2014-06-03 23:44:49 +08:00
parent 944c422768
commit 8aae1f07ca
1 changed files with 3 additions and 0 deletions

View File

@ -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')