summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js
diff options
context:
space:
mode:
authorKirill Fertikov <kirill.fertikov@gmail.com>2023-04-21 23:03:53 +0500
committerYousong Zhou <yszhou4tech@gmail.com>2023-04-24 14:13:16 +0800
commit80da11720e09e1167df2dbc140d6221c3464c7f2 (patch)
treeaba40f5bbaf819d15a11235197f1621aaf5b9aa3 /applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js
parent876c9b292d0a5d3915dd6e085a0a3c0dbe3f16ac (diff)
luci-app-shadowsocks-libev: ACL support
Signed-off-by: Kirill Fertikov <kirill.fertikov@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js')
-rw-r--r--applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js b/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js
index 671f17a9e4..cc59cfe318 100644
--- a/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js
+++ b/applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js
@@ -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));
}
};