From a6c7cdbfbd497ede35aa2137295285bd526dd6d4 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 29 Nov 2021 20:30:58 +0800
Subject: [PATCH] update-11.29
---
autoshare-ksmbd/files/20-smb-ksmbd | 5 +-
autoshare-samba/files/20-smb | 5 +-
.../luasrc/model/cbi/koolproxy/basic.lua | 4 +-
.../luasrc/view/admin_network/dev_status.htm | 60 +++++--
.../luasrc/view/admin_network/user_status.htm | 64 +++----
.../luasrc/controller/openclash.lua | 2 +-
.../luasrc/model/cbi/openclash/settings.lua | 24 ++-
.../po/zh-cn/openclash.zh-cn.po | 42 ++++-
luci-app-openclash/root/etc/init.d/openclash | 3 +-
.../custom/openclash_custom_fake_filter.list | 2 +
.../openclash/openclash_streaming_unlock.lua | 169 ++++++++++++++++--
.../usr/share/openclash/openclash_watchdog.sh | 12 +-
.../root/usr/share/openclash/yml_change.sh | 8 +
shadowsocks-rust/Makefile | 4 +-
14 files changed, 312 insertions(+), 92 deletions(-)
diff --git a/autoshare-ksmbd/files/20-smb-ksmbd b/autoshare-ksmbd/files/20-smb-ksmbd
index e1590f6cc..b7bc77883 100644
--- a/autoshare-ksmbd/files/20-smb-ksmbd
+++ b/autoshare-ksmbd/files/20-smb-ksmbd
@@ -7,7 +7,10 @@
# 警告:对着屏幕的哥们,我们允许你使用此脚本,但不允许你抹去作者的信息,请保留这段话。
#
-[ "$(uci -q get ksmbd.@globals[0].autoshare)" == "1" ] && exit 0;
+[ "$(uci -q get ksmbd.@globals[0].autoshare)" == "1" ] && {
+/etc/init.d/ksmbd restart
+exit 0;
+}
. /lib/functions.sh
. /lib/functions/service.sh
diff --git a/autoshare-samba/files/20-smb b/autoshare-samba/files/20-smb
index 0d4fabf8d..152cb7972 100644
--- a/autoshare-samba/files/20-smb
+++ b/autoshare-samba/files/20-smb
@@ -7,7 +7,10 @@
# 警告:对着屏幕的哥们,我们允许你使用此脚本,但不允许你抹去作者的信息,请保留这段话。
#
-[ "$(uci -q get samba4.@samba[0].autoshare)" == "1" ] && exit 0;
+[ "$(uci -q get samba4.@samba[0].autoshare)" == "1" ] && {
+/etc/init.d/samba4 restart
+exit 0;
+}
. /lib/functions.sh
. /lib/functions/service.sh
diff --git a/luci-app-godproxy/luasrc/model/cbi/koolproxy/basic.lua b/luci-app-godproxy/luasrc/model/cbi/koolproxy/basic.lua
index 62aab5a2d..647e5fa26 100644
--- a/luci-app-godproxy/luasrc/model/cbi/koolproxy/basic.lua
+++ b/luci-app-godproxy/luasrc/model/cbi/koolproxy/basic.lua
@@ -54,7 +54,7 @@ e.default = 1
e = t:option(MultiValue, "koolproxy_rules", translate("内置规则"))
e.optional = false
-e.rmempty = false
+e.rmempty = true
e:value("koolproxy.txt", translate("静态规则"))
e:value("daily.txt", translate("每日规则"))
e:value("kp.dat", translate("视频规则"))
@@ -62,7 +62,7 @@ e:value("user.txt", translate("自定义规则"))
e = t:option(MultiValue, "thirdparty_rules", translate("第三方规则"))
e.optional = false
-e.rmempty = false
+e.rmempty = true
e:value("adg.txt", translate("AdGuard规则"))
e:value("steven.txt", translate("Steven规则"))
e:value("yhosts.txt", translate("Yhosts规则"))
diff --git a/luci-app-oaf/luasrc/view/admin_network/dev_status.htm b/luci-app-oaf/luasrc/view/admin_network/dev_status.htm
index 58cf16ed0..81210b2b7 100755
--- a/luci-app-oaf/luasrc/view/admin_network/dev_status.htm
+++ b/luci-app-oaf/luasrc/view/admin_network/dev_status.htm
@@ -4,7 +4,27 @@ local dsp = require "luci.dispatcher"
-%>
#display{
- display: flex;
+ padding: 10px;
+ display: -webkit-box;
+ -webkit-box-orient: horizontal;
+ -webkit-box-pack: center;
+ -webkit-box-align: center;
+ display: -moz-box;
+ -moz-box-orient: horizontal;
+ -moz-box-pack: center;
+ -moz-box-align: center;
+ display: -o-box;
+ -o-box-orient: horizontal;
+ -o-box-pack: center;
+ -o-box-align: center;
+ display: -ms-box;
+ -ms-box-orient: horizontal;
+ -ms-box-pack: center;
+ -ms-box-align: center;
+ display: box;
+ box-orient: horizontal;
+ box-pack: center;
+ box-align: center;
}
table.imagetable {
@@ -14,6 +34,7 @@ table.imagetable {
border-width: 1px;
border-color: #999999;
border-collapse: collapse;
+ padding-top:10px;
}
-
-