From 4198ec84cecb043eca3a9ffcb5c2a1aae94990ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sun, 16 Jul 2017 11:56:17 +0800 Subject: [PATCH] not filter mu port --- db_transfer.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/db_transfer.py b/db_transfer.py index 3a1441d..67bda60 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -122,12 +122,14 @@ class TransferBase(object): logging.error('more than one user use the same port [%s]' % (port,)) continue + if 'protocol' in cfg and 'protocol_param' in cfg and common.to_str(cfg['protocol']) in obfs.mu_protocol(): + if '#' in common.to_str(cfg['protocol_param']): + mu_servers[port] = passwd + allow = True + if allow: - allow_users[port] = cfg - if 'protocol' in cfg and 'protocol_param' in cfg and common.to_str(cfg['protocol']) in obfs.mu_protocol(): - if '#' in common.to_str(cfg['protocol_param']): - mu_servers[port] = passwd - del allow_users[port] + if port not in mu_servers: + allow_users[port] = cfg cfgchange = False if port in ServerPool.get_instance().tcp_servers_pool: