luci-app-shadowsocks-libev: ACL support
Signed-off-by: Kirill Fertikov <kirill.fertikov@gmail.com>
This commit is contained in:
parent
876c9b292d
commit
80da11720e
2 changed files with 7 additions and 1 deletions
|
@ -170,7 +170,7 @@ return baseclass.extend({
|
||||||
o.datatype = 'base64';
|
o.datatype = 'base64';
|
||||||
o.password = true;
|
o.password = true;
|
||||||
o.size = 12;
|
o.size = 12;
|
||||||
o.modalonly = true;;
|
o.modalonly = true;
|
||||||
|
|
||||||
optfunc(form.Value, 'plugin', _('Plugin')).modalonly = true;
|
optfunc(form.Value, 'plugin', _('Plugin')).modalonly = true;
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,12 @@ return view.extend({
|
||||||
o.datatype = 'hostport';
|
o.datatype = 'hostport';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (stype === 'ss_local' || stype === 'ss_server') {
|
||||||
|
o = s.taboption('advanced', form.FileUpload, 'acl',
|
||||||
|
_('ACL file'),
|
||||||
|
_('File containing Access Control List'));
|
||||||
|
o.root_directory = '/etc/shadowsocks-libev';
|
||||||
|
}
|
||||||
}, this));
|
}, this));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue