custom 'forbidden_ip' for each user
fix cmp for IPNetwork & PortRange
This commit is contained in:
parent
8cbca008c6
commit
5c1b90b774
3 changed files with 9 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue