Commit graph

38 commits

Author SHA1 Message Date
Richard Yu
b83374b340 luci-app-shadowsocks-libev: port to client side
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-11-04 10:14:15 +08:00
Yousong Zhou
62d8a4fdd7 luci-app-shadowsocks-libev: move plugin options to server sections
In this change, plugin options are moved from component settings to
only server settings.  This should make the configuration easier.  And
it will be less error-prone as it's impossible now for users to
inconsisitent plugin settings for instances referring to the same remote
server

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-09 06:18:55 +00:00
Yousong Zhou
263dc01f03 luci-app-shadowsocks-libev: allow setting plugin options
Reference: https://github.com/openwrt/packages/issues/8903
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-06 15:23:20 +00:00
Yousong Zhou
e9232f6113 luci-app-shadowsocks-libev: reword base64 -encoding-
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-06 15:23:16 +00:00
Soha Jin
47cba970a5 luci-app-shadowsocks-libev: Fix HTML tag
Signed-off-by: Soha Jin <soha@lohu.info>
2019-01-22 14:13:07 +08:00
Yousong Zhou
a86c068870 luci-app-shadowsocks-libev: ss_rules: allow ip6 in src_dst_option()
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-01-21 07:20:02 +00:00
Yousong Zhou
7908b2b71c treewide: fix query arguments to admin/system/opkg
Right now the handler only recognizes "query=xx" argument, others will
be ignored.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-01-01 05:04:51 +00:00
Yousong Zhou
85b67625f7 treewide: fix redirecting to System->Software
By replacing url "admin/system/packages" with "admin/system/opkg"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-01-01 05:04:49 +00:00
Florian Eckert
121e7fea66 luci-app-*: use default poll interval
Replace all XHR poll time number with -1 so they will use the default
poll interval time value from "/etc/config/luci". If this is not set then
5 seconds as default is used.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20 10:20:23 +01:00
yangfl
ae8b68cfe8 treewide: Fix typos in UI strings
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-12 22:18:51 +08:00
Jo-Philipp Wich
c7ee1ffcf1 luci-app-shadowsocks-libev: cleanup section add markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 18:01:43 +02:00
Jo-Philipp Wich
067d7dc9f7 treewide: convert HTML tables to div
Mostly convert HTML tables to div based markup to allow for easier styling
in the future. Also change JS accessor code accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
Yousong Zhou
402ad57e55 shadowsocks-libev: fix enumerating server and ss_redir sections
The issue existed since the first revision of the rewrite and was
exposed by commit 4024d4f (luci-base: switch to ubus uci operations)

A quick scan of the current repo indicates that these are the only sites
of wrong call pattern

Fixes openwrt/packages#6113

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 11:13:15 +08:00
Yousong Zhou
770033dba3 luci-app-shadowsocks-libev: remove deprecated option disable_sni
This reverts commit 5d91683575.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-05 11:06:25 +08:00
Yousong Zhou
28aafed472 luci-app-shadowsocks-libev: add no_delay to names_options_common
It will appear in the instance overview list

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-05 11:04:00 +08:00
Yousong Zhou
f1862ced41 luci-app-shadowsocks-libev: remove option manager_address
It's an option that is supposed to be fed by ss-manager.  It can be
in the form of host:port or path to unix dgram socket.  Drop it now with
the assumption that it has no real user at the moment

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-04 14:47:27 +08:00
Yousong Zhou
1ad37267ab luci-app-shadowsocks-libev: support option no_delay
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-04 14:46:30 +08:00
Yousong Zhou
611c14bff1 luci-app-shadowsocks-libev: display disabled state of remote server
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-01-04 14:40:09 +08:00
Yousong Zhou
28b996d66f luci-app-shadowsocks-libev: support for option dst_forward_recentrst
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:50 +08:00
Yousong Zhou
4b042bcbd9 luci-app-shadowsocks-libev: enumerate ifnames with sys.net.devices()
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:50 +08:00
Yousong Zhou
f5fa1a0f08 luci-app-shadowsocks-libev: rename option title for src dst list
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:50 +08:00
Yousong Zhou
fd085d9910 luci-app-shadowsocks-libev: tweak list of redir instances
- Skip disabled ones
 - Allow empty value

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:49 +08:00
Yousong Zhou
56e9ac6642 luci-app-shadowsocks-libev: fix setting boolean option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:49 +08:00
Yousong Zhou
54c1772ad9 luci-app-shadowsocks-libev: validate elements of src, dst ip/net list
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-22 20:19:49 +08:00
Yousong Zhou
f5ae714d9d luci-app-shadowsocks-libev: support ss_rules options: dst_default, ifnames
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-20 02:27:45 +08:00
Yousong Zhou
1c680e8c78 luci-app-shadowsocks-libev: add 2 aead methods
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-20 02:27:40 +08:00
Yousong Zhou
e47366a8a1 luci-app-shadowsocks-libev: fix typo in setting ss_rules.disabled=true
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-20 01:25:57 +08:00
Yousong Zhou
0a2fa7b16f luci-app-shadowsocks-libev: assume ss-redir has default mode tcp_only
This is in accordance with the current actual implementation of
ss-redir.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-13 12:36:59 +08:00
Yousong Zhou
be77667225 luci-app-shadowsocks-libev: add a ss_rules section if none exists
When there is no ss_rules section, the "Redir Rules" tab will have empty
form in the generated page.  This is especialy the case when the
shadowsocks-libev config is from an earlier version before 3.0.6-2

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-13 12:36:58 +08:00
Yousong Zhou
76a4609c66 luci-app-shadowsocks-libev: hide key, password value in instance overview
This is mainly for ss_server section

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-08 11:25:22 +08:00
Yousong Zhou
5d91683575 luci-app-shadowsocks-libev: support ss_redir disable_sni option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-04 22:29:09 +08:00
Yousong Zhou
7fae5f5c22 luci-app-shadowsocks-libev: add common flag ipv6_first
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-02 15:02:31 +08:00
Yousong Zhou
a668c58607 luci-app-shadowsocks-libev: remove redundant duplicate methods
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-08-02 14:35:32 +08:00
Yousong Zhou
06ad394dde luci-app-shadowsocks-libev: auto update instance running state
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-24 14:53:36 +08:00
Yousong Zhou
48b5ccfad5 luci-app-shadowsocks-libev: rewrite for shadowsocks-libev 3.0.6-2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-23 23:40:26 +08:00
Jo-Philipp Wich
854a5f68bb luci-app-shadowsocks-libev: eliminate use of luci.sys.net.arptable()
Translate the use of luci.sys.net.arptable() to luci.ip.neighbors() to allow
dropping the former function from base LuCI later on.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11 14:05:31 +02:00
Jian Chang
966d87b79b luci-app-shadowsocks-libev: update package
support for shadowsocks-libev v2.2.3

Signed-off-by: Jian Chang <aa65535@live.com>
2015-07-23 00:52:27 +08:00
Jian Chang
74501038e4 luci-app-shadowsocks-libev: add package
This adds support for configuring shadowsocks-libev

Signed-off-by: Jian Chang <aa65535@live.com>
2015-07-03 15:17:38 +08:00