Browse Source

not filter mu port

dev
破娃酱 7 years ago
parent
commit
4198ec84ce
  1. 12
      db_transfer.py

12
db_transfer.py

@ -122,12 +122,14 @@ class TransferBase(object):
logging.error('more than one user use the same port [%s]' % (port,)) logging.error('more than one user use the same port [%s]' % (port,))
continue 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: if allow:
allow_users[port] = cfg if port not in mu_servers:
if 'protocol' in cfg and 'protocol_param' in cfg and common.to_str(cfg['protocol']) in obfs.mu_protocol(): allow_users[port] = cfg
if '#' in common.to_str(cfg['protocol_param']):
mu_servers[port] = passwd
del allow_users[port]
cfgchange = False cfgchange = False
if port in ServerPool.get_instance().tcp_servers_pool: if port in ServerPool.get_instance().tcp_servers_pool:

Loading…
Cancel
Save