Browse Source

warn table encryption

auth
clowwindy 11 years ago
parent
commit
8aae1f07ca
  1. 3
      shadowsocks/utils.py

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

Loading…
Cancel
Save