luci-app-shadowsocks-libev: ACL support

Signed-off-by: Kirill Fertikov <kirill.fertikov@gmail.com>
This commit is contained in:
Kirill Fertikov 2023-04-21 23:03:53 +05:00 committed by Yousong Zhou
parent 876c9b292d
commit 80da11720e
2 changed files with 7 additions and 1 deletions

View file

@ -170,7 +170,7 @@ return baseclass.extend({
o.datatype = 'base64';
o.password = true;
o.size = 12;
o.modalonly = true;;
o.modalonly = true;
optfunc(form.Value, 'plugin', _('Plugin')).modalonly = true;

View file

@ -108,6 +108,12 @@ return view.extend({
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));
}
};