diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2020-07-29 14:53:32 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2020-08-03 11:53:26 +0800 |
commit | 3a7c6df26296922e2ce2d6aeb8e23cdae2ddb9b6 (patch) | |
tree | 6556fde9f31c71e4779ede046fd1d5f3ef317283 /applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view | |
parent | 5e79fc42a30f47e8cca8bb15178c2de93b6d0cdb (diff) |
luci-app-shadowsocks-libev: local_{ipv4,ipv6}_address for ss_server
Following changes are related and included in the same commit
- Deprecate bind_address by not displaying and handling it in the UI
- Allow ipv6 address for the old local_address option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-shadowsocks-libev/htdocs/luci-static/resources/view/shadowsocks-libev/instances.js | 17 |
1 files changed, 13 insertions, 4 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 9a591d5962..671f17a9e4 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 @@ -84,12 +84,21 @@ return view.extend({ if (stype === 'ss_server') { ss.options_server(s, { tab: 'general' }); - o = s.taboption('general', form.Value, 'bind_address', - _('Bind address'), - _('The address ss-server will initiate connection from')); + o = s.taboption('advanced', form.Value, 'local_address', + _('Local address'), + _('The address ss-server will initiate connections from')); o.datatype = 'ipaddr'; - o.placeholder = '0.0.0.0'; ss.values_ipaddr(o, res[1]); + o = s.taboption('advanced', form.Value, 'local_ipv4_address', + _('Local IPv4 address'), + _('The IPv4 address ss-server will initiate IPv4 connections from')); + o.datatype = 'ip4addr'; + ss.values_ip4addr(o, res[1]); + o = s.taboption('advanced', form.Value, 'local_ipv6_address', + _('Local IPv6 address'), + _('The IPv6 address ss-server will initiate IPv6 connections from')); + o.datatype = 'ip6addr'; + ss.values_ip6addr(o, res[1]); } else { ss.options_client(s, 'general', res[1]); if (stype === 'ss_tunnel') { |