From 7bfafa7f3d0dfe38dc3ccaddabf9f860a1b49a34 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Wed, 20 Jul 2016 11:13:56 +0800 Subject: [PATCH] fix cfg --- db_transfer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db_transfer.py b/db_transfer.py index f91cadc..f389216 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -224,8 +224,8 @@ class DbTransfer(object): self.event.wait(eventloop.TIMEOUT_PRECISION + eventloop.TIMEOUT_PRECISION / 2) for port in new_servers.keys(): passwd, cfg = new_servers[port] - protocol = cfb.get('protocol', ServerPool.get_instance().config.get('protocol', 'origin')) - obfs = cfb.get('obfs', ServerPool.get_instance().config.get('obfs', 'plain')) + protocol = cfg.get('protocol', ServerPool.get_instance().config.get('protocol', 'origin')) + obfs = cfg.get('obfs', ServerPool.get_instance().config.get('obfs', 'plain')) logging.info('db start server at port [%s] pass [%s] protocol [%s] obfs [%s]' % (port, passwd, protocol, obfs)) ServerPool.get_instance().new_server(port, cfg)