custom 'forbidden_ip' for each user

fix cmp for IPNetwork & PortRange
This commit is contained in:
BreakWa11 2016-06-15 18:34:05 +08:00
parent 8cbca008c6
commit 5c1b90b774
3 changed files with 9 additions and 4 deletions

View file

@ -120,7 +120,7 @@ class DbTransfer(object):
passwd = common.to_bytes(row['passwd'])
cfg = {'password': passwd}
read_config_keys = ['method', 'obfs', 'protocol', 'forbidden_port']
read_config_keys = ['method', 'obfs', 'protocol', 'forbidden_ip', 'forbidden_port']
for name in read_config_keys:
if name in row and row[name]:
cfg[name] = row[name]