This commit is contained in:
clowwindy
2014-06-05 19:47:03 +08:00
parent a3748a292d
commit d3f294217c
6 changed files with 9 additions and 5 deletions

View File

@ -73,6 +73,10 @@ def check_config(config):
if config.get('timeout', 300) > 600:
logging.warn('warning: your timeout %d seems too long' %
int(config.get('timeout')))
if config.get('password') in ['mypassword', 'barfoo!']:
logging.error('DON\'T USE DEFAULT PASSWORD! Please change it in your '
'config.json!')
exit(1)
def get_config(is_local):