Skip to content

Commit 4198ec8

Browse files
committed
not filter mu port
1 parent 0c1a936 commit 4198ec8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

db_transfer.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
122122
logging.error('more than one user use the same port [%s]' % (port,))
123123
continue
124124

125+
if 'protocol' in cfg and 'protocol_param' in cfg and common.to_str(cfg['protocol']) in obfs.mu_protocol():
126+
if '#' in common.to_str(cfg['protocol_param']):
127+
mu_servers[port] = passwd
128+
allow = True
129+
125130
if allow:
126-
allow_users[port] = cfg
127-
if 'protocol' in cfg and 'protocol_param' in cfg and common.to_str(cfg['protocol']) in obfs.mu_protocol():
128-
if '#' in common.to_str(cfg['protocol_param']):
129-
mu_servers[port] = passwd
130-
del allow_users[port]
131+
if port not in mu_servers:
132+
allow_users[port] = cfg
131133

132134
cfgchange = False
133135
if port in ServerPool.get_instance().tcp_servers_pool:

0 commit comments

Comments
 (0)