check cipher before daemon start

fix #280
This commit is contained in:
clowwindy 2015-02-02 15:46:22 +08:00
parent ae99698b4e
commit 7aa37cad8e
4 changed files with 15 additions and 10 deletions

View file

@ -30,8 +30,7 @@ import logging
import signal
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))
from shadowsocks import utils, daemon, encrypt, eventloop, tcprelay, udprelay,\
asyncdns
from shadowsocks import utils, daemon, eventloop, tcprelay, udprelay, asyncdns
def main():
@ -49,8 +48,6 @@ def main():
utils.print_shadowsocks()
encrypt.try_cipher(config['password'], config['method'])
try:
logging.info("starting local at %s:%d" %
(config['local_address'], config['local_port']))