Skip to content

Commit

Permalink
修复单端口多用户无法设置不进行中转 by 老虎兔儿
Browse files Browse the repository at this point in the history
  • Loading branch information
NimaQu committed May 21, 2018
1 parent c2c8985 commit 5d9822a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
if has_higher_priority:
continue

if self.relay_rule_list[id]['dist_ip'] == '0.0.0.0':
if self.relay_rule_list[id]['dist_ip'] == '0.0.0.0' and row['is_multi_user'] == 0:
continue

temp_relay_rules[id] = self.relay_rule_list[id]
Expand Down Expand Up @@ -711,7 +711,7 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
continue

if self.relay_rule_list[id][
'dist_ip'] == '0.0.0.0':
'dist_ip'] == '0.0.0.0' and row['is_multi_user'] == 0:
continue

temp_relay_rules[id] = self.relay_rule_list[id]
Expand Down
3 changes: 3 additions & 0 deletions shadowsocks/tcprelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ def _get_mu_relay_host(self, ogn_data):
continue

if has_higher_priority:
continue

if self._relay_rules[id]['dist_ip'] == '0.0.0.0':
continue

if self._relay_rules[id]['port'] == 0:
Expand Down
3 changes: 3 additions & 0 deletions shadowsocks/udprelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ def _get_mu_relay_host(self, ogn_data, uid):
continue

if has_higher_priority:
continue

if self._relay_rules[id]['dist_ip'] == '0.0.0.0':
continue

if self._relay_rules[id]['port'] == 0:
Expand Down
4 changes: 2 additions & 2 deletions web_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
if has_higher_priority:
continue

if self.relay_rule_list[id]['dist_ip'] == '0.0.0.0':
if self.relay_rule_list[id]['dist_ip'] == '0.0.0.0' and row['is_multi_user'] == 0:
continue

temp_relay_rules[id] = self.relay_rule_list[id]
Expand Down Expand Up @@ -499,7 +499,7 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
continue

if self.relay_rule_list[id][
'dist_ip'] == '0.0.0.0':
'dist_ip'] == '0.0.0.0' and row['is_multi_user'] == 0:
continue

temp_relay_rules[id] = self.relay_rule_list[id]
Expand Down

0 comments on commit 5d9822a

Please sign in to comment.