Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
fixed not vip remove prot error
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Apr 28, 2016
1 parent 8b5f82b commit e984fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shadowsocks/dbtransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def del_server_out_of_bound_safe(rows):
logging.info('db stop server at port [%s] reason: password or method changed' % (row[0]))
print('db stop server at port [%s] reason: password or method changed' % (row[0]))
DbTransfer.send_command('remove: {"server_port":%s}' % row[0])
if config.PRO_NODE == 1 and row[7] != 'VIP':
logging.info('db stop server at port [%s] reason: not VIP plan' % (row[0]))
DbTransfer.send_command('remove: {"server_port":%s}' % row[0])
else:
if row[5] == 1 and row[1] + row[2] < row[3]:
logging.info('db start server at port [%s] pass [%s]' % (row[0], row[4]))
Expand Down

0 comments on commit e984fa1

Please sign in to comment.