Skip to content

Commit

Permalink
not filter mu port
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jul 16, 2017
1 parent 0c1a936 commit 4198ec8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions db_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
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:
Expand Down

0 comments on commit 4198ec8

Please sign in to comment.